
declare module Zlib {
    export class Inflate {
        constructor(data:any);
        decompress(): any;
     }
     
    export class Deflate { 
        constructor(data:any);
        compress():any;
    }
    
}
declare namespace egret {
    /**
     * @private
     */
    interface MapLike<T> {
        [key: string]: T;
        [key: number]: T;
    }
    /**
     * @private
     */
    function createMap<T>(): MapLike<T>;
}
declare var DEBUG: boolean;
declare var __reflect: any;
declare var __extends: any;
declare var global: Window & typeof globalThis;
declare var __global: {
    egret_stages: any[];
    FPS: any;
    ExternalInterface: any;
};
declare let __define: (o: any, p: any, g: any, s: any) => void;
declare namespace egret {
    type Nullable<T> = T | null;
    /**
     * The HashObject class is the base class for all objects in the Egret framework.The HashObject
     * class includes a hashCode property, which is a unique identification number of the instance.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * Egret顶级对象。框架内所有对象的基类，为对象实例提供唯一的hashCode值。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface IHashObject {
        /**
         * a unique identification number assigned to this instance.
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language en_US
         */
        /**
         * 返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language zh_CN
         */
        hashCode: number;
    }
    /**
     * @private
     * 哈希计数
     */
    let $hashCount: number;
    /**
     * The HashObject class is the base class for all objects in the Egret framework.The HashObject
     * class includes a hashCode property, which is a unique identification number of the instance.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * Egret顶级对象。框架内所有对象的基类，为对象实例提供唯一的hashCode值。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class HashObject implements IHashObject {
        /**
         * Initializes a HashObject
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 HashObject 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        /**
         * @private
         */
        $hashCode: number;
        /**
         * a unique identification number assigned to this instance.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回此对象唯一的哈希值,用于唯一确定一个对象。hashCode为大于等于1的整数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get hashCode(): number;
    }
}
declare namespace egret.wxgame {
    let version: string;
    /**
     * 运行环境是否为子域
     */
    let isSubContext: boolean;
    /**
     * 解决提交纹理异常临时方案
     */
    let preUploadTexture: boolean;
    /**微信小游戏共享画布*/
    let sharedCanvas: any;
    /**微信小游戏主域画布*/
    let canvas: any;
    /**微信小游戏sdk*/
    let wx: any;
    /**是否debug环境*/
    let debug: boolean;
}
declare namespace egret {
    /**
     * The EventDispatcher class is the base class for all classes that dispatchEvent events. The EventDispatcher class implements
     * the IEventDispatcher interface and is the base class for the DisplayObject class. The EventDispatcher class allows
     * any object on the display list to be an event target and as such, to use the methods of the IEventDispatcher interface.
     * Event targets are an important part of the Egret event model. The event target serves as the focal point for how events
     * flow through the display list hierarchy. When an event such as a touch tap, Egret dispatches an event object into the
     * event flow from the root of the display list. The event object then makes its way through the display list until it
     * reaches the event target, at which point it begins its return trip through the display list. This round-trip journey
     * to the event target is conceptually divided into three phases: <br/>
     * the capture phase comprises the journey from the root to the last node before the event target's node, the target
     * phase comprises only the event target node, and the bubbling phase comprises any subsequent nodes encountered on
     * the return trip to the root of the display list. In general, the easiest way for a user-defined class to gain event
     * dispatching capabilities is to extend EventDispatcher. If this is impossible (that is, if the class is already extending
     * another class), you can instead implement the IEventDispatcher interface, create an EventDispatcher member, and write simple
     * hooks to route calls into the aggregated EventDispatcher.
     * @see egret.IEventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/EventDispatcher.ts
     * @language en_US
     */
    /**
     * EventDispatcher 是 Egret 的事件派发器类，负责进行事件的发送和侦听。
     * 事件目标是事件如何通过显示列表层次结构这一问题的焦点。当发生鼠标单击、触摸或按键等事件时，
     * 框架会将事件对象调度到从显示列表根开始的事件流中。然后该事件对象在显示列表中前进，直到到达事件目标，
     * 然后从这一点开始其在显示列表中的回程。在概念上，到事件目标的此往返行程被划分为三个阶段：
     * 捕获阶段包括从根到事件目标节点之前的最后一个节点的行程，目标阶段仅包括事件目标节点，冒泡阶段包括回程上遇到的任何后续节点到显示列表的根。
     * 通常，使用户定义的类能够调度事件的最简单方法是扩展 EventDispatcher。如果无法扩展（即，如果该类已经扩展了另一个类），则可以实现
     * IEventDispatcher 接口，创建 EventDispatcher 成员，并编写一些简单的映射，将调用连接到聚合的 EventDispatcher 中。
     * @see egret.IEventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/EventDispatcher.ts
     * @language zh_CN
     */
    class EventDispatcher extends HashObject implements IEventDispatcher {
        /**
         * create an instance of the EventDispatcher class.
         * @param target The target object for events dispatched to the EventDispatcher object. This parameter is used when
         * the EventDispatcher instance is aggregated by a class that implements IEventDispatcher; it is necessary so that the
         * containing object can be the target for events. Do not use this parameter in simple cases in which a class extends EventDispatcher.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 EventDispatcher 类的实例
         * @param target 此 EventDispatcher 所抛出事件对象的 target 指向。此参数主要用于一个实现了 IEventDispatcher 接口的自定义类，
         * 以便抛出的事件对象的 target 属性可以指向自定义类自身。请勿在直接继承 EventDispatcher 的情况下使用此参数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(target?: IEventDispatcher);
        /**
         * @private
         */
        $EventDispatcher: Object;
        /**
         * @private
         *
         * @param useCapture
         */
        $getEventMap(useCapture?: boolean): any;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        once(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void;
        /**
         * @private
         */
        $addListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): void;
        $insertEventBin(list: any[], type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): boolean;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        removeEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean): void;
        $removeEventBin(list: any[], listener: Function, thisObject: any): boolean;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        hasEventListener(type: string): boolean;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        willTrigger(type: string): boolean;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        dispatchEvent(event: Event): boolean;
        /**
         * @private
         */
        $notifyListener(event: Event, capturePhase: boolean): boolean;
        /**
         * Distribute a specified event parameters.
         * @param type The type of the event. Event listeners can access this information through the inherited type property.
         * @param bubbles Determines whether the Event object bubbles. Event listeners can access this information through
         * the inherited bubbles property.
         * @param data {any} data
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 派发一个指定参数的事件。
         * @param type {string} 事件类型
         * @param bubbles {boolean} 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param data {any} 事件data
         * @param cancelable {boolean} 确定是否可以取消 Event 对象。默认值为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        dispatchEventWith(type: string, bubbles?: boolean, data?: any, cancelable?: boolean): boolean;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 事件信息对象
     */
    interface EventBin {
        type: string;
        /**
         * @private
         */
        listener: Function;
        /**
         * @private
         */
        thisObject: any;
        /**
         * @private
         */
        priority: number;
        /**
         * @private
         */
        target: IEventDispatcher;
        /**
         * @private
         */
        useCapture: boolean;
        /**
         * @private
         */
        dispatchOnce: boolean;
    }
}
declare namespace egret {
    /**
     * @private
     */
    const enum RenderMode {
        NONE = 1,
        FILTER = 2,
        CLIP = 3,
        SCROLLRECT = 4
    }
    /**
     * The DisplayObject class is the base class for all objects that can be placed on the display list. The display list
     * manages all objects displayed in the runtime. Use the DisplayObjectContainer class to arrange the display
     * objects in the display list. DisplayObjectContainer objects can have child display objects, while other display objects,
     * such as Shape and TextField objects, are "leaf" nodes that have only parents and siblings, no children.
     * The DisplayObject class supports basic functionality like the x and y position of an object, as well as more advanced
     * properties of the object such as its transformation matrix.<br/>
     * The DisplayObject class contains several broadcast events.Normally, the target of any particular event is a specific
     * DisplayObject instance. For example, the target of an added event is the specific DisplayObject instance that was added
     * to the display list. Having a single target restricts the placement of event listeners to that target and in some cases
     * the target's ancestors on the display list. With broadcast events, however, the target is not a specific DisplayObject
     * instance, but rather all DisplayObject instances, including those that are not on the display list. This means that you
     * can add a listener to any DisplayObject instance to listen for broadcast events.
     *
     * @event egret.Event.ADDED Dispatched when a display object is added to the display list.
     * @event egret.Event.ADDED_TO_STAGE Dispatched when a display object is added to the on stage display list, either directly or through the addition of a sub tree in which the display object is contained.
     * @event egret.Event.REMOVED Dispatched when a display object is about to be removed from the display list.
     * @event egret.Event.REMOVED_FROM_STAGE Dispatched when a display object is about to be removed from the display list, either directly or through the removal of a sub tree in which the display object is contained.
     * @event egret.Event.ENTER_FRAME [broadcast event] Dispatched when the playhead is entering a new frame.
     * @event egret.Event.RENDER [broadcast event] Dispatched when the display list is about to be updated and rendered.
     * @event egret.TouchEvent.TOUCH_MOVE Dispatched when the user touches the device, and is continuously dispatched until the point of contact is removed.
     * @event egret.TouchEvent.TOUCH_BEGIN Dispatched when the user first contacts a touch-enabled device (such as touches a finger to a mobile phone or tablet with a touch screen).
     * @event egret.TouchEvent.TOUCH_END Dispatched when the user removes contact with a touch-enabled device (such as lifts a finger off a mobile phone or tablet with a touch screen).
     * @event egret.TouchEvent.TOUCH_TAP Dispatched when the user lifts the point of contact over the same DisplayObject instance on which the contact was initiated on a touch-enabled device (such as presses and releases a finger from a single point over a display object on a mobile phone or tablet with a touch screen).
     * @event egret.TouchEvent.TOUCH_RELEASE_OUTSIDE Dispatched when the user lifts the point of contact over the different DisplayObject instance on which the contact was initiated on a touch-enabled device (such as presses and releases a finger from a single point over a display object on a mobile phone or tablet with a touch screen).
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/DisplayObject.ts
     * @language en_US
     */
    /**
     * DisplayObject 类是可放在显示列表中的所有对象的基类。该显示列表管理运行时中显示的所有对象。使用 DisplayObjectContainer 类排列
     * 显示列表中的显示对象。DisplayObjectContainer 对象可以有子显示对象，而其他显示对象（如 Shape 和 TextField 对象）是“叶”节点，没有子项，只有父级和
     * 同级。DisplayObject 类有一些基本的属性（如确定坐标位置的 x 和 y 属性），也有一些高级的对象属性（如 Matrix 矩阵变换）。<br/>
     * DisplayObject 类包含若干广播事件。通常，任何特定事件的目标均为一个特定的 DisplayObject 实例。例如，added 事件的目标是已添加到显示列表
     * 的目标 DisplayObject 实例。若只有一个目标，则会将事件侦听器限制为只能监听在该目标上（在某些情况下，可监听在显示列表中该目标的祖代上）。
     * 但是对于广播事件，目标不是特定的 DisplayObject 实例，而是所有 DisplayObject 实例（包括那些不在显示列表中的实例）。这意味着您可以向任何
     * DisplayObject 实例添加侦听器来侦听广播事件。
     *
     * @event egret.Event.ADDED 将显示对象添加到显示列表中时调度。
     * @event egret.Event.ADDED_TO_STAGE 在将显示对象直接添加到舞台显示列表或将包含显示对象的子树添加至舞台显示列表中时调度。
     * @event egret.Event.REMOVED 将要从显示列表中删除显示对象时调度。
     * @event egret.Event.REMOVED_FROM_STAGE 在从显示列表中直接删除显示对象或删除包含显示对象的子树时调度。
     * @event egret.Event.ENTER_FRAME [广播事件] 播放头进入新帧时调度。
     * @event egret.Event.RENDER [广播事件] 将要更新和呈现显示列表时调度。
     * @event egret.TouchEvent.TOUCH_MOVE 当用户触碰设备时进行调度，而且会连续调度，直到接触点被删除。
     * @event egret.TouchEvent.TOUCH_BEGIN 当用户第一次触摸启用触摸的设备时（例如，用手指触摸手机屏幕）调度。
     * @event egret.TouchEvent.TOUCH_END 当用户移除与启用触摸的设备的接触时（例如，将手指从屏幕上抬起）调度。
     * @event egret.TouchEvent.TOUCH_TAP 当用户在启用触摸设备上的已启动接触的同一 DisplayObject 实例上抬起接触点时（例如，手机点击屏幕后抬起）调度。
     * @event egret.TouchEvent.TOUCH_RELEASE_OUTSIDE 当用户在启用触摸设备上的已启动接触的不同 DisplayObject 实例上抬起接触点时（例如，按住屏幕上的某个对象,然后从它上面挪开后再松开手指）调度。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/DisplayObject.ts
     * @language zh_CN
     */
    class DisplayObject extends EventDispatcher {
        /**
         * Initializes a DisplayObject object
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个显示对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        $nativeDisplayObject: egret_native.NativeDisplayObject;
        protected createNativeDisplayObject(): void;
        /**
         * @private
         * 是否添加到舞台上，防止重复发送 removed_from_stage 消息
         */
        $hasAddToStage: boolean;
        /**
         * @private
         * 能够含有子项的类将子项列表存储在这个属性里。
         */
        $children: DisplayObject[];
        private $name;
        /**
         * Indicates the instance name of the DisplayObject. The object can be identified in the child list of its parent
         * display object container by calling the getChildByName() method of the display object container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 DisplayObject 的实例名称。
         * 通过调用父显示对象容器的 getChildByName() 方法，可以在父显示对象容器的子列表中标识该对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get name(): string;
        set name(value: string);
        /**
         * @private
         */
        $parent: DisplayObjectContainer;
        /**
         * Indicates the DisplayObjectContainer object that contains this display object. Use the parent property to specify
         * a relative path to display objects that are above the current display object in the display list hierarchy.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示包含此显示对象的 DisplayObjectContainer 对象。
         * 使用 parent 属性可以指定高于显示列表层次结构中当前显示对象的显示对象的相对路径。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get parent(): DisplayObjectContainer;
        /**
         * @private
         * 设置父级显示对象
         */
        $setParent(parent: DisplayObjectContainer): void;
        /**
         * @private
         * 显示对象添加到舞台
         */
        $onAddToStage(stage: Stage, nestLevel: number): void;
        /**
         * @private
         * 显示对象从舞台移除
         */
        $onRemoveFromStage(): void;
        /**
         * @private
         */
        $stage: Stage;
        /**
         * @private
         * 这个对象在显示列表中的嵌套深度，舞台为1，它的子项为2，子项的子项为3，以此类推。当对象不在显示列表中时此属性值为0.
         */
        $nestLevel: number;
        $useTranslate: boolean;
        protected $updateUseTransform(): void;
        /**
         * The Stage of the display object. you can create and load multiple display objects into the display list, and
         * the stage property of each display object refers to the same Stage object.<br/>
         * If a display object is not added to the display list, its stage property is set to null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 显示对象的舞台。
         * 例如，您可以创建多个显示对象并加载到显示列表中，每个显示对象的 stage 属性是指向相同的 Stage 对象。<br/>
         * 如果显示对象未添加到显示列表，则其 stage 属性会设置为 null。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get stage(): Stage;
        /**
         * A Matrix object containing values that alter the scaling, rotation, and translation of the display object.<br/>
         * Note: to change the value of a display object's matrix, you must make a copy of the entire matrix object, then copy
         * the new object into the matrix property of the display object.
         * @example the following code increases the tx value of a display object's matrix
         * <pre>
         *     let myMatrix:Matrix = myDisplayObject.matrix;
         *     myMatrix.tx += 10;
         *     myDisplayObject.matrix = myMatrix;
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个 Matrix 对象，其中包含更改显示对象的缩放、旋转和平移的值。<br/>
         * 注意：要改变一个显示对象矩阵的值，您必引用整个矩阵对象，然后将它重新赋值给显示对象的 matrix 属性。
         * @example 以下代码改变了显示对象矩阵的tx属性值：
         * <pre>
         *     let myMatrix:Matrix = myDisplayObject.matrix;
         *     myMatrix.tx += 10;
         *     myDisplayObject.matrix = myMatrix;
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get matrix(): Matrix;
        private $matrix;
        private $matrixDirty;
        /**
         * @private
         * 获取矩阵
         */
        $getMatrix(): Matrix;
        set matrix(value: Matrix);
        /**
         * @private
         * 设置矩阵
         */
        $setMatrix(matrix: Matrix, needUpdateProperties?: boolean): void;
        private $concatenatedMatrix;
        /**
         * @private
         * 获得这个显示对象以及它所有父级对象的连接矩阵。
         */
        $getConcatenatedMatrix(): Matrix;
        private $invertedConcatenatedMatrix;
        /**
         * @private
         * 获取链接矩阵
         */
        $getInvertedConcatenatedMatrix(): Matrix;
        $x: number;
        /**
         * Indicates the x coordinate of the DisplayObject instance relative to the local coordinates of the parent
         * DisplayObjectContainer.<br/>
         * If the object is inside a DisplayObjectContainer that has transformations, it is in
         * the local coordinate system of the enclosing DisplayObjectContainer. Thus, for a DisplayObjectContainer
         * rotated 90° counterclockwise, the DisplayObjectContainer's children inherit a coordinate system that is
         * rotated 90° counterclockwise. The object's coordinates refer to the registration point position.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 x 坐标。<br/>
         * 如果该对象位于具有变形的 DisplayObjectContainer 内，则它也位于包含 DisplayObjectContainer 的本地坐标系中。
         * 因此，对于逆时针旋转 90 度的 DisplayObjectContainer，该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get x(): number;
        /**
         * @private
         * 获取x坐标
         */
        $getX(): number;
        set x(value: number);
        /**
         * @private
         * 设置x坐标
         */
        $setX(value: number): boolean;
        $y: number;
        /**
         * Indicates the y coordinate of the DisplayObject instance relative to the local coordinates of the parent
         * DisplayObjectContainer. <br/>
         * If the object is inside a DisplayObjectContainer that has transformations, it is in
         * the local coordinate system of the enclosing DisplayObjectContainer. Thus, for a DisplayObjectContainer rotated
         * 90° counterclockwise, the DisplayObjectContainer's children inherit a coordinate system that is rotated 90°
         * counterclockwise. The object's coordinates refer to the registration point position.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 y 坐标。<br/>
         * 如果该对象位于具有变形的 DisplayObjectContainer 内，则它也位于包含 DisplayObjectContainer 的本地坐标系中。
         * 因此，对于逆时针旋转 90 度的 DisplayObjectContainer，该 DisplayObjectContainer 的子级将继承逆时针旋转 90 度的坐标系。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get y(): number;
        /**
         * @private
         * 获取y坐标
         */
        $getY(): number;
        set y(value: number);
        /**
         * @private
         * 设置y坐标
         */
        $setY(value: number): boolean;
        $scaleX: number;
        /**
         * Indicates the horizontal scale (percentage) of the object as applied from the registration point. <br/>
         * The default 1.0 equals 100% scale.
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示从注册点开始应用的对象的水平缩放比例（百分比）。<br/>
         * 1.0 等于 100% 缩放。
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get scaleX(): number;
        set scaleX(value: number);
        /**
         * @private
         *
         * @returns
         */
        $getScaleX(): number;
        /**
         * @private
         * 设置水平缩放值
         */
        $setScaleX(value: number): void;
        $scaleY: number;
        /**
         * Indicates the vertical scale (percentage) of an object as applied from the registration point of the object.
         * 1.0 is 100% scale.
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示从对象注册点开始应用的对象的垂直缩放比例（百分比）。1.0 是 100% 缩放。
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get scaleY(): number;
        set scaleY(value: number);
        /**
         * @private
         *
         * @returns
         */
        $getScaleY(): number;
        /**
         * @private
         * 设置垂直缩放值
         */
        $setScaleY(value: number): void;
        $rotation: number;
        /**
         * Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation. Values from
         * 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation. Values outside
         * this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement
         * myDisplayObject.rotation = 450 is the same as myDisplayObject.rotation = 90.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 DisplayObject 实例距其原始方向的旋转程度，以度为单位。
         * 从 0 到 180 的值表示顺时针方向旋转；从 0 到 -180 的值表示逆时针方向旋转。对于此范围之外的值，可以通过加上或
         * 减去 360 获得该范围内的值。例如，myDisplayObject.rotation = 450语句与 myDisplayObject.rotation = 90 是相同的。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get rotation(): number;
        /**
         * @private
         */
        $getRotation(): number;
        set rotation(value: number);
        $setRotation(value: number): void;
        $skewX: number;
        $skewXdeg: number;
        /**
         * 表示DisplayObject的x方向斜切
         * @member {number} egret.DisplayObject#skewX
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         */
        get skewX(): number;
        set skewX(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setSkewX(value: number): void;
        $skewY: number;
        $skewYdeg: number;
        /**
         * 表示DisplayObject的y方向斜切
         * @member {number} egret.DisplayObject#skewY
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         */
        get skewY(): number;
        set skewY(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setSkewY(value: number): void;
        /**
         * Indicates the width of the display object, in pixels. The width is calculated based on the bounds of the content
         * of the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示显示对象的宽度，以像素为单位。宽度是根据显示对象内容的范围来计算的。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get width(): number;
        /**
         * @private
         * 获取显示宽度
         */
        $getWidth(): number;
        $explicitWidth: number;
        set width(value: number);
        /**
         * @private
         * 设置显示宽度
         */
        $setWidth(value: number): void;
        /**
         * Indicates the height of the display object, in pixels. The height is calculated based on the bounds of the
         * content of the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示显示对象的高度，以像素为单位。高度是根据显示对象内容的范围来计算的。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get height(): number;
        $explicitHeight: number;
        /**
         * @private
         * 获取显示高度
         */
        $getHeight(): number;
        set height(value: number);
        /**
         * @private
         * 设置显示高度
         */
        $setHeight(value: number): void;
        /**
         * 测量宽度
         * @returns {number}
         * @member {egret.Rectangle} egret.DisplayObject#measuredWidth
         * @version Egret 2.4
         * @platform Web,Native
         */
        get measuredWidth(): number;
        /**
         * 测量高度
         * @returns {number}
         * @member {egret.Rectangle} egret.DisplayObject#measuredWidth
         * @version Egret 2.4
         * @platform Web,Native
         */
        get measuredHeight(): number;
        $anchorOffsetX: number;
        /**
         * X represents the object of which is the anchor.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示从对象绝对锚点X。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get anchorOffsetX(): number;
        set anchorOffsetX(value: number);
        /**
         * @private
         *
         * @param value
         * @returns
         */
        $setAnchorOffsetX(value: number): void;
        $anchorOffsetY: number;
        /**
         * Y represents the object of which is the anchor.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示从对象绝对锚点Y。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get anchorOffsetY(): number;
        set anchorOffsetY(value: number);
        /**
         * @private
         *
         * @param value
         * @returns
         */
        $setAnchorOffsetY(value: number): void;
        /**
         * @private
         */
        $visible: boolean;
        /**
         * Whether or not the display object is visible. Display objects that are not visible are disabled. For example,
         * if visible=false for an DisplayObject instance, it cannot receive touch or other user input.
         * @default true
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 显示对象是否可见。不可见的显示对象将被禁用。例如，如果实例的 visible 为 false，则无法接受触摸或用户交互操作。
         * @default true
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get visible(): boolean;
        set visible(value: boolean);
        $setVisible(value: boolean): void;
        /**
         * @private
         * cacheAsBitmap创建的缓存位图节点。
         */
        $displayList: egret.sys.DisplayList;
        private $cacheAsBitmap;
        /**
         * If set to true, Egret runtime caches an internal bitmap representation of the display object. This caching can
         * increase performance for display objects that contain complex vector content. After you set the cacheAsBitmap
         * property to true, the rendering does not change, however the display object performs pixel snapping automatically.
         * The execution speed can be significantly faster depending on the complexity of the content.The cacheAsBitmap
         * property is best used with display objects that have mostly static content and that do not scale and rotate frequently.<br/>
         * Note: The display object will not create the bitmap caching when the memory exceeds the upper limit,even if you set it to true.
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果设置为 true，则 Egret 运行时将缓存显示对象的内部位图表示形式。此缓存可以提高包含复杂矢量内容的显示对象的性能。
         * 将 cacheAsBitmap 属性设置为 true 后，呈现并不更改，但是，显示对象将自动执行像素贴紧。执行速度可能会大大加快，
         * 具体取决于显示对象内容的复杂性。最好将 cacheAsBitmap 属性与主要具有静态内容且不频繁缩放或旋转的显示对象一起使用。<br/>
         * 注意：在内存超过上限的情况下，即使将 cacheAsBitmap 属性设置为 true，显示对象也不使用位图缓存。
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get cacheAsBitmap(): boolean;
        set cacheAsBitmap(value: boolean);
        $setHasDisplayList(value: boolean): void;
        $cacheDirty: boolean;
        $cacheDirtyUp(): void;
        /**
         * @private
         */
        $alpha: number;
        /**
         * Indicates the alpha transparency value of the object specified. Valid values are 0 (fully transparent) to 1 (fully opaque).
         * The default value is 1. Display objects with alpha set to 0 are active, even though they are invisible.
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示指定对象的 Alpha 透明度值。
         * 有效值为 0（完全透明）到 1（完全不透明）。alpha 设置为 0 的显示对象是可触摸的，即使它们不可见。
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get alpha(): number;
        set alpha(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setAlpha(value: number): void;
        /**
         * @private
         * The default touchEnabled property of DisplayObject
         * @default false
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * @private
         * 显示对象默认的 touchEnabled 属性
         * @default false
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        static defaultTouchEnabled: boolean;
        $touchEnabled: boolean;
        /**
         * Specifies whether this object receives touch or other user input. The default value is false, which means that
         * by default any DisplayObject instance that is on the display list cannot receive touch events. If touchEnabled is
         * set to false, the instance does not receive any touch events (or other user input events). Any children of
         * this instance on the display list are not affected. To change the touchEnabled behavior for all children of
         * an object on the display list, use DisplayObjectContainer.touchChildren.
         * @see egret.DisplayObjectContainer#touchChildren
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 指定此对象是否接收触摸或其他用户输入。默认值为 false，这表示默认情况下，显示列表上的任何 DisplayObject 实例都不会接收触摸事件或
         * 其他用户输入事件。如果将 touchEnabled 设置为 false，则实例将不接收任何触摸事件（或其他用户输入事件）。显示列表上的该实例的任
         * 何子级都不会受到影响。要更改显示列表上对象的所有子级的 touchEnabled 行为，请使用 DisplayObjectContainer.touchChildren。
         * @see egret.DisplayObjectContainer#touchChildren
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get touchEnabled(): boolean;
        set touchEnabled(value: boolean);
        /**
         * @private
         */
        $getTouchEnabled(): boolean;
        /**
         * @private
         */
        $setTouchEnabled(value: boolean): void;
        /**
         * @private
         */
        $scrollRect: Rectangle;
        /**
         * The scroll rectangle bounds of the display object. The display object is cropped to the size defined by the rectangle,
         * and it scrolls within the rectangle when you change the x and y properties of the scrollRect object. A scrolled display
         * object always scrolls in whole pixel increments.You can scroll an object left and right by setting the x property of
         * the scrollRect Rectangle object. You can scroll an object up and down by setting the y property of the scrollRect
         * Rectangle object. If the display object is rotated 90° and you scroll it left and right, the display object actually
         * scrolls up and down.<br/>
         *
         * Note: to change the value of a display object's scrollRect, you must make a copy of the entire scrollRect object, then copy
         * the new object into the scrollRect property of the display object.
         * @example the following code increases the x value of a display object's scrollRect
         * <pre>
         *     let myRectangle:Rectangle = myDisplayObject.scrollRect;
         *     myRectangle.x += 10;
         *     myDisplayObject.scrollRect = myRectangle;
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 显示对象的滚动矩形范围。显示对象被裁切为矩形定义的大小，当您更改 scrollRect 对象的 x 和 y 属性时，它会在矩形内滚动。
         * 滚动的显示对象始终以整像素为增量进行滚动。您可以通过设置 scrollRect Rectangle 对象的 x 属性来左右滚动对象， 还可以通过设置
         * scrollRect 对象的 y 属性来上下滚动对象。如果显示对象旋转了 90 度，并且您左右滚动它，则实际上显示对象会上下滚动。<br/>
         *
         * 注意：要改变一个显示对象 scrollRect 属性的值，您必引用整个 scrollRect 对象，然后将它重新赋值给显示对象的 scrollRect 属性。
         * @example 以下代码改变了显示对象 scrollRect 的 x 属性值：
         * <pre>
         *     let myRectangle:Rectangle = myDisplayObject.scrollRect;
         *     myRectangle.x += 10;
         *     myDisplayObject.scrollRect = myRectangle;//设置完scrollRect的x、y、width、height值之后，一定要对myDisplayObject重新赋值scrollRect，不然会出问题。
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get scrollRect(): Rectangle;
        set scrollRect(value: Rectangle);
        /**
         * @private
         *
         * @param value
         */
        private $setScrollRect;
        /**
         * @private
         */
        $blendMode: number;
        /**
         * A value from the BlendMode class that specifies which blend mode to use. Determine how a source image (new one)
         * is drawn on the target image (old one).<br/>
         * If you attempt to set this property to an invalid value, Egret runtime set the value to BlendMode.NORMAL.
         * @default egret.BlendMode.NORMAL
         * @see egret.BlendMode
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * BlendMode 枚举中的一个值，用于指定要使用的混合模式，确定如何将一个源（新的）图像绘制到目标（已有）的图像上<br/>
         * 如果尝试将此属性设置为无效值，则运行时会将此值设置为 BlendMode.NORMAL。
         * @default egret.BlendMode.NORMAL
         * @see egret.BlendMode
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get blendMode(): string;
        set blendMode(value: string);
        /**
         * @private
         * 被遮罩的对象
         */
        $maskedObject: DisplayObject;
        /**
         * @private
         */
        $mask: DisplayObject;
        /**
         * @private
         */
        $maskRect: Rectangle;
        /**
         * The calling display object is masked by the specified mask object. To ensure that masking works when the Stage
         * is scaled, the mask display object must be in an active part of the display list. The mask object itself is not drawn.
         * Set mask to null to remove the mask. To be able to scale a mask object, it must be on the display list. To be
         * able to drag a mask object , it must be on the display list.<br/>
         * Note: A single mask object cannot be used to mask more than one calling display object. When the mask is assigned
         * to a second display object, it is removed as the mask of the first object, and that object's mask property becomes null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 调用显示对象被指定的 mask 对象遮罩。要确保当舞台缩放时蒙版仍然有效，mask 显示对象必须处于显示列表的活动部分。
         * 但不绘制 mask 对象本身。将 mask 设置为 null 可删除蒙版。要能够缩放遮罩对象，它必须在显示列表中。要能够拖动蒙版
         * 对象，它必须在显示列表中。<br/>
         * 注意：单个 mask 对象不能用于遮罩多个执行调用的显示对象。在将 mask 分配给第二个显示对象时，会撤消其作为第一个对象的遮罩，
         * 该对象的 mask 属性将变为 null。
         *
         * 下面例子为 mask 为 Rectangle 类型对象，这种情况下，修改 mask 的值后，一定要对 myDisplayObject 重新赋值 mask，不然会出问题。
         * @example 以下代码改变了显示对象 mask 的 x 属性值：
         * <pre>
         *     let myMask:Rectangle = myDisplayObject.mask;
         *     myMask.x += 10;
         *     myDisplayObject.mask = myMask;//设置完 mask 的x、y、width、height值之后，一定要对myDisplayObject重新赋值 mask，不然会出问题。
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get mask(): DisplayObject | Rectangle;
        set mask(value: DisplayObject | Rectangle);
        private $setMaskRect;
        $filters: Array<Filter | CustomFilter>;
        /**
         * An indexed array that contains each filter object currently associated with the display object.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 包含当前与显示对象关联的每个滤镜对象的索引数组。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        get filters(): Array<Filter | CustomFilter>;
        set filters(value: Array<Filter | CustomFilter>);
        /**
         * Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
         * @param targetCoordinateSpace The display object that defines the coordinate system to use.
         * @param resultRect A reusable instance of Rectangle for saving the results. Passing this parameter can reduce the number of reallocate objects
         *, which allows you to get better code execution performance..
         * @returns The rectangle that defines the area of the display object relative to the targetCoordinateSpace object's coordinate system.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回一个矩形，该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
         * @param targetCoordinateSpace 定义要使用的坐标系的显示对象。
         * @param resultRect 一个用于存储结果的可复用Rectangle实例，传入此参数能够减少内部创建对象的次数，从而获得更高的运行性能。
         * @returns 定义与 targetCoordinateSpace 对象坐标系统相关的显示对象面积的矩形。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle;
        /**
         * Obtain measurement boundary of display object
         * @param resultRect {Rectangle} Optional. It is used to import Rectangle object for saving results, preventing duplicate object creation.
         * @param calculateAnchor {boolean} Optional. It is used to determine whether to calculate anchor point.
         * @returns {Rectangle}
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取显示对象的测量边界
         * @param resultRect {Rectangle} 可选参数，传入用于保存结果的Rectangle对象，避免重复创建对象。
         * @param calculateAnchor {boolean} 可选参数，是否会计算锚点。
         * @returns {Rectangle}
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getBounds(resultRect?: Rectangle, calculateAnchor?: boolean): egret.Rectangle;
        /**
         * @private
         */
        $getTransformedBounds(targetCoordinateSpace: DisplayObject, resultRect?: Rectangle): Rectangle;
        /**
         * Converts the point object from the Stage (global) coordinates to the display object's (local) coordinates.
         * @param stageX the x value in the global coordinates
         * @param stageY the y value in the global coordinates
         * @param resultPoint A reusable instance of Point for saving the results. Passing this parameter can reduce the
         * number of reallocate objects, which allows you to get better code execution performance.
         * @returns A Point object with coordinates relative to the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将从舞台（全局）坐标转换为显示对象的（本地）坐标。
         * @param stageX 舞台坐标x
         * @param stageY 舞台坐标y
         * @param resultPoint 一个用于存储结果的可复用 Point 实例，传入此参数能够减少内部创建对象的次数，从而获得更高的运行性能。
         * @returns 具有相对于显示对象的坐标的 Point 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        globalToLocal(stageX?: number, stageY?: number, resultPoint?: Point): Point;
        /**
         * Converts the point object from the display object's (local) coordinates to the Stage (global) coordinates.
         * @param localX the x value in the local coordinates
         * @param localY the x value in the local coordinates
         * @param resultPoint A reusable instance of Point for saving the results. Passing this parameter can reduce the
         * number of reallocate objects, which allows you to get better code execution performance.
         * @returns  A Point object with coordinates relative to the Stage.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将显示对象的（本地）坐标转换为舞台（全局）坐标。
         * @param localX 本地坐标 x
         * @param localY 本地坐标 y
         * @param resultPoint 一个用于存储结果的可复用 Point 实例，传入此参数能够减少内部创建对象的次数，从而获得更高的运行性能。
         * @returns 一个具有相对于舞台坐标的 Point 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        localToGlobal(localX?: number, localY?: number, resultPoint?: Point): Point;
        /**
         * @private
         * 获取显示对象占用的矩形区域集合，通常包括自身绘制的测量区域，如果是容器，还包括所有子项占据的区域。
         */
        $getOriginalBounds(): Rectangle;
        /**
         * @private
         * 测量子项占用的矩形区域
         * @param bounds 测量结果存储在这个矩形对象内
         */
        $measureChildBounds(bounds: Rectangle): void;
        /**
         * @private
         */
        $getContentBounds(): Rectangle;
        /**
         * @private
         * 测量自身占用的矩形区域，注意：此测量结果并不包括子项占据的区域。
         * @param bounds 测量结果存储在这个矩形对象内
         */
        $measureContentBounds(bounds: Rectangle): void;
        /**
         * @private
         */
        $parentDisplayList: egret.sys.DisplayList;
        /**
         * @private
         * 渲染节点,不为空表示自身有绘制到屏幕的内容
         */
        $renderNode: sys.RenderNode;
        $renderDirty: boolean;
        /**
         * @private
         * 获取渲染节点
         */
        $getRenderNode(): sys.RenderNode;
        $updateRenderMode(): void;
        $renderMode: RenderMode;
        /**
         * @private
         */
        private $measureFiltersOffset;
        /**
         * @private
         * 获取相对于指定根节点的连接矩阵。
         * @param root 根节点显示对象
         * @param matrix 目标显示对象相对于舞台的完整连接矩阵。
         */
        $getConcatenatedMatrixAt(root: DisplayObject, matrix: Matrix): void;
        /**
         * @private
         * 更新renderNode
         */
        $updateRenderNode(): void;
        /**
         * @private
         */
        $hitTest(stageX: number, stageY: number): DisplayObject;
        /**
         * Calculate the display object to determine whether it overlaps or crosses with the points specified by the x and y parameters. The x and y parameters specify the points in the coordinates of the stage, rather than the points in the display object container that contains display objects (except the situation where the display object container is a stage).
         * Note: Don't use accurate pixel collision detection on a large number of objects. Otherwise, this will cause serious performance deterioration.
         * @param x {number}  x coordinate of the object to be tested.
         * @param y {number}  y coordinate of the object to be tested.
         * @param shapeFlag {boolean} Whether to check the actual pixel of object (true) or check that of border (false).Write realized.
         * @returns {boolean} If display object overlaps or crosses with the specified point, it is true; otherwise, it is false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 计算显示对象，以确定它是否与 x 和 y 参数指定的点重叠或相交。x 和 y 参数指定舞台的坐标空间中的点，而不是包含显示对象的显示对象容器中的点（除非显示对象容器是舞台）。
         * 注意，不要在大量物体中使用精确碰撞像素检测，这回带来巨大的性能开销
         * @param x {number}  要测试的此对象的 x 坐标。
         * @param y {number}  要测试的此对象的 y 坐标。
         * @param shapeFlag {boolean} 是检查对象 (true) 的实际像素，还是检查边框 (false) 的实际像素。
         * @returns {boolean} 如果显示对象与指定的点重叠或相交，则为 true；否则为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        hitTestPoint(x: number, y: number, shapeFlag?: boolean): boolean;
        /**
         * @private
         */
        static $enterFrameCallBackList: DisplayObject[];
        /**
         * @private
         */
        static $renderCallBackList: DisplayObject[];
        /**
         * @private
         */
        $addListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number, dispatchOnce?: boolean): void;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        removeEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean): void;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        dispatchEvent(event: Event): boolean;
        /**
         * @private
         * 获取事件流列表。注意：Egret框架的事件流与Flash实现并不一致。
         *
         * 事件流有三个阶段：捕获，目标，冒泡。
         * Flash里默认的的事件监听若不开启useCapture将监听目标和冒泡阶段。若开始capture将只能监听捕获当不包括目标的事件。
         * 可以在Flash中写一个简单的测试：实例化一个非容器显示对象，例如TextField。分别监听useCapture为true和false时的鼠标事件。
         * 点击后将只有useCapture为false的回调函数输出信息。也就带来一个问题「Flash的捕获阶段不能监听到最内层对象本身，只在父级列表有效」。
         *
         * 而HTML里的事件流设置useCapture为true时是能监听到目标阶段的，也就是目标阶段会被触发两次，在捕获和冒泡过程各触发一次。这样可以避免
         * 前面提到的监听捕获无法监听目标本身的问题。
         *
         * Egret最终采用了HTML里目标节点触发两次的事件流方式。
         */
        $getPropagationList(target: DisplayObject): DisplayObject[];
        /**
         * @private
         */
        $dispatchPropagationEvent(event: Event, list: DisplayObject[], targetIndex: number): void;
        /**
         * @inheritDoc
         * @version Egret 2.4
         * @platform Web,Native
         */
        willTrigger(type: string): boolean;
        /**
         * inspired by pixi.js
         */
        _tint: number;
        /**
         * @private
         */
        $tintRGB: number;
        /**
         * Set a tint color for the current object
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 给当前对象设置填充色
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language zh_CN
         */
        get tint(): number;
        set tint(value: number);
        /**GYLite setTint比set-tint访问速度快*/
        setTint(value: number): void;
        /**
         * @private
         * inspired by pixi.js
         */
        $sortDirty: boolean;
        sortChildren(): void;
        /**
         * @private
         */
        private _zIndex;
        /**
         * the z-order (front-to-back order) of the object
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设置对象的 Z 轴顺序（前后顺序）
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language zh_CN
         */
        get zIndex(): number;
        set zIndex(value: number);
        /**GYLite setZIndex比set-zIndex访问速度快*/
        setZIndex(value: number): void;
        /**
         * @private
         */
        $lastSortedIndex: number;
        /**
         * Allow objects to use zIndex sorting
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 允许对象使用 zIndex 排序
         * @version Egret 5.2.24
         * @platform Web,Native
         * @language zh_CN
         */
        get sortableChildren(): boolean;
        set sortableChildren(value: boolean);
        private _sortableChildren;
        /**是否以矩形范围也算入碰撞测试*/ rectHit: boolean;
        /**鼠标是否完全穿透，即不参与碰撞检测*/ mouseThrough: boolean;
    }
}
declare namespace egret {
    /**
     * The DisplayObjectContainer class is a basic display list building block: a display list node that can contain children.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/DisplayObjectContainer.ts
     * @language en_US
     */
    /**
     * DisplayObjectContainer 类是基本显示列表构造块：一个可包含子项的显示列表节点。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/DisplayObjectContainer.ts
     * @language zh_CN
     */
    class DisplayObjectContainer extends DisplayObject {
        /**
         * @private
         */
        static $EVENT_ADD_TO_STAGE_LIST: DisplayObject[];
        /**
         * @private
         */
        static $EVENT_REMOVE_FROM_STAGE_LIST: DisplayObject[];
        /**
         * Creates a new DisplayObjectContainer instance.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 实例化一个容器
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        /**
         * Returns the number of children of this object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回此对象的子项数目。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get numChildren(): number;
        /**
         * Set children sort mode.
         * @param value {string} The sort mode
         * @see egret.ChildrenSortMode
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        /**
         * 设置子项目的排序方式
         * @param value {string} 排序方式
         * @see egret.ChildrenSortMode
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        setChildrenSortMode(value: string): void;
        /**
         * Adds a child DisplayObject instance to this DisplayObjectContainer instance. The child is added to the front
         * (top) of all other children in this DisplayObjectContainer instance. (To add a child to a specific index position,
         * use the addChildAt() method.)If you add a child object that already has a different display object container
         * as a parent, the object is removed from the child list of the other display object container.
         * @param child The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
         * @returns 在 child The DisplayObject instance that you pass in the child parameter.
         * @see #addChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。子项将被添加到该 DisplayObjectContainer 实例中其他
         * 所有子项的前（上）面。（要将某子项添加到特定索引位置，请使用 addChildAt() 方法。）
         * @param child 要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。
         * @returns 在 child 参数中传递的 DisplayObject 实例。
         * @see #addChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        addChild(child: DisplayObject): DisplayObject;
        /**
         * Adds a child DisplayObject instance to this DisplayObjectContainer instance. The child is added at the index position
         * specified. An index of 0 represents the back (bottom) of the display list for this DisplayObjectContainer object.
         * If you add a child object that already has a different display object container as a parent, the object is removed
         * from the child list of the other display object container.
         * @param child The DisplayObject instance to add as a child of this DisplayObjectContainer instance.
         * @param index The index position to which the child is added. If you specify a currently occupied index position,
         * the child object that exists at that position and all higher positions are moved up one position in the child list.
         * @returns The DisplayObject instance that you pass in the child parameter.
         * @see #addChild()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。该子项将被添加到指定的索引位置。索引为 0 表示该
         * DisplayObjectContainer 对象的显示列表的后（底）部。如果添加一个已将其它显示对象容器作为父项的子对象，则会从其它显示对象容器的子列表中删除该对象。
         * @param child 要作为该 DisplayObjectContainer 实例的子项添加的 DisplayObject 实例。
         * @param index 添加该子项的索引位置。 如果指定当前占用的索引位置，则该位置以及所有更高位置上的子对象会在子级列表中上移一个位置。
         * @returns 在 child 参数中传递的 DisplayObject 实例。
         * @see #addChild()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        addChildAt(child: DisplayObject, index: number): DisplayObject;
        /**
         * @private
         */
        $doAddChild(child: DisplayObject, index: number, notifyListeners?: boolean): DisplayObject;
        /**
         * Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance
         * itself. The search includes the entire display list including this DisplayObjectContainer instance. Grandchildren,
         * great-grandchildren, and so on each return true.
         * @param child The child object to test.
         * @returns true if the child object is a child of the DisplayObjectContainer or the container itself; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定指定显示对象是 DisplayObjectContainer 实例的子项或该实例本身。搜索包括整个显示列表（其中包括此 DisplayObjectContainer 实例）。
         * 孙项、曾孙项等，每项都返回 true。
         * @param child 要测试的子对象。
         * @returns 如果 child 对象是 DisplayObjectContainer 的子项或容器本身，则为 true；否则为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        contains(child: DisplayObject): boolean;
        /**
         * Returns the child display object instance that exists at the specified index.
         * @param index The index position of the child object.
         * @returns The child display object at the specified index position.
         * @see #getChildByName()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回位于指定索引处的子显示对象实例。
         * @param index 子对象的索引位置。
         * @returns 位于指定索引位置处的子显示对象。
         * @see #getChildByName()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getChildAt(index: number): DisplayObject;
        /**
         * Returns the index position of a child DisplayObject instance.
         * @param child The DisplayObject instance to identify.
         * @returns The index position of the child display object to identify.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回 DisplayObject 的 child 实例的索引位置。
         * @param child 要测试的子对象。
         * @returns 要查找的子显示对象的索引位置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getChildIndex(child: egret.DisplayObject): number;
        /**
         * Returns the child display object that exists with the specified name. If more that one child display object has
         * the specified name, the method returns the first object in the child list.The getChildAt() method is faster than
         * the getChildByName() method. The getChildAt() method accesses a child from a cached array, whereas the getChildByName()
         * method has to traverse a linked list to access a child.
         * @param name The name of the child to return.
         * @returns The child display object with the specified name.
         * @see #getChildAt()
         * @see egret.DisplayObject#name
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回具有指定名称的子显示对象。如果多个子显示对象具有指定名称，则该方法会返回子级列表中的第一个对象。
         * getChildAt() 方法比 getChildByName() 方法快。getChildAt() 方法从缓存数组中访问子项，而 getChildByName() 方法则必须遍历链接的列表来访问子项。
         * @param name 要返回的子项的名称。
         * @returns 具有指定名称的子显示对象。
         * @see #getChildAt()
         * @see egret.DisplayObject#name
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getChildByName(name: string): DisplayObject;
        /**
         * Removes the specified child DisplayObject instance from the child list of the DisplayObjectContainer instance.
         * The parent property of the removed child is set to null , and the object is garbage collected if no other references
         * to the child exist. The index positions of any display objects above the child in the DisplayObjectContainer are
         * decreased by 1.
         * @param child The DisplayObject instance to remove.
         * @returns The DisplayObject instance that you pass in the child parameter.
         * @see #removeChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。将已删除子项的 parent 属性设置为 null；
         * 如果不存在对该子项的任何其它引用，则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。
         * @param child 要删除的 DisplayObject 实例。
         * @returns 在 child 参数中传递的 DisplayObject 实例。
         * @see #removeChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        removeChild(child: DisplayObject): DisplayObject;
        /**
         * Removes a child DisplayObject from the specified index position in the child list of the DisplayObjectContainer.
         * The parent property of the removed child is set to null, and the object is garbage collected if no other references
         * to the child exist. The index positions of any display objects above the child in the DisplayObjectContainer are decreased by 1.
         * @param index The child index of the DisplayObject to remove.
         * @returns The DisplayObject instance that was removed.
         * @see #removeChild()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。将已删除子项的 parent 属性设置为 null；
         * 如果没有对该子项的任何其他引用，则将该对象作为垃圾回收。DisplayObjectContainer 中该子项之上的任何显示对象的索引位置都减去 1。
         * @param index 要删除的 DisplayObject 的子索引。
         * @returns 已删除的 DisplayObject 实例。
         * @see #removeChild()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        removeChildAt(index: number): DisplayObject;
        /**
         * @private
         */
        $doRemoveChild(index: number, notifyListeners?: boolean): DisplayObject;
        /**
         * Changes the position of an existing child in the display object container. This affects the layering of child objects.
         * @param child The child DisplayObject instance for which you want to change the index number.
         * @param index The resulting index number for the child display object.
         * @see #addChildAt()
         * @see #getChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 更改现有子项在显示对象容器中的位置。这会影响子对象的分层。
         * @param child 要为其更改索引编号的 DisplayObject 子实例。
         * @param index 生成的 child 显示对象的索引编号。当新的索引编号小于0或大于已有子元件数量时，新加入的DisplayObject对象将会放置于最上层。
         * @see #addChildAt()
         * @see #getChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setChildIndex(child: DisplayObject, index: number): void;
        /**
         * @private
         */
        private doSetChildIndex;
        /**
         * Swaps the z-order (front-to-back order) of the child objects at the two specified index positions in the child
         * list. All other child objects in the display object container remain in the same index positions.
         * @param index1 The index position of the first child object.
         * @param index2 The index position of the second child object.
         * @see #swapChildren()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在子级列表中两个指定的索引位置，交换子对象的 Z 轴顺序（前后顺序）。显示对象容器中所有其他子对象的索引位置保持不变。
         * @param index1 第一个子对象的索引位置。
         * @param index2 第二个子对象的索引位置。
         * @see #swapChildren()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        swapChildrenAt(index1: number, index2: number): void;
        /**
         * Swaps the z-order (front-to-back order) of the two specified child objects. All other child objects in the
         * display object container remain in the same index positions.
         * @param child1 The first child object.
         * @param child2 The second child object.
         * @see #swapChildrenAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 交换两个指定子对象的 Z 轴顺序（从前到后顺序）。显示对象容器中所有其他子对象的索引位置保持不变。
         * @param child1 第一个子对象。
         * @param child2 第二个子对象。
         * @see #swapChildrenAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        swapChildren(child1: DisplayObject, child2: DisplayObject): void;
        /**
         * @private
         */
        private doSwapChildrenAt;
        /**
         * Removes all child DisplayObject instances from the child list of the DisplayObjectContainer instance. The parent
         * property of the removed children is set to null , and the objects are garbage collected if no other references to the children exist.
         * @see #removeChild()
         * @see #removeChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从 DisplayObjectContainer 实例的子级列表中删除所有 child DisplayObject 实例。
         * @see #removeChild()
         * @see #removeChildAt()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        removeChildren(): void;
        /**
         * @private
         * 一个子项被添加到容器内，此方法不仅在操作addChild()时会被回调，在操作setChildIndex()或swapChildren时也会回调。
         * 当子项索引发生改变时，会先触发$childRemoved()方法，然后触发$childAdded()方法。
         */
        $childAdded(child: DisplayObject, index: number): void;
        /**
         * @private
         * 一个子项从容器内移除，此方法不仅在操作removeChild()时会被回调，在操作setChildIndex()或swapChildren时也会回调。
         * 当子项索引发生改变时，会先触发$childRemoved()方法，然后触发$childAdded()方法。
         */
        $childRemoved(child: DisplayObject, index: number): void;
        /**
         * @private
         */
        $onAddToStage(stage: Stage, nestLevel: number): void;
        /**
         * @private
         *
         */
        $onRemoveFromStage(): void;
        /**
         * @private
         */
        $measureChildBounds(bounds: Rectangle): void;
        $touchChildren: boolean;
        /**
         * Determines whether or not the children of the object are touch, or user input device, enabled. If an object is
         * enabled, a user can interact with it by using a touch or user input device.
         * @default true
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定对象的子级是否支持触摸或用户输入设备。如果对象支持触摸或用户输入设备，用户可以通过使用触摸或用户输入设备与之交互。
         * @default true
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get touchChildren(): boolean;
        /**
         * @private
         *
         * @returns
         */
        $getTouchChildren(): boolean;
        set touchChildren(value: boolean);
        /**
         * @private
         */
        $setTouchChildren(value: boolean): boolean;
        /**
         * @private
         */
        $hitTest(stageX: number, stageY: number): DisplayObject;
        private _sortChildrenFunc;
        sortChildren(): void;
    }
}
declare namespace egret {
    /**
     * The Sprite class is a basic display list building block: a display list node that can contain children.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Sprite.ts
     * @language en_US
     */
    /**
     * Sprite 类是基本显示列表构造块：一个可包含子项的显示列表节点。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Sprite.ts
     * @language zh_CN
     */
    class Sprite extends DisplayObjectContainer {
        /**
         * Creates a new Sprite instance.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 实例化一个容器
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        protected createNativeDisplayObject(): void;
        /**
         * @private
         */
        $graphics: Graphics;
        /**
         * Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取 Shape 中的 Graphics 对象。可通过此对象执行矢量绘图命令。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get graphics(): Graphics;
        $hitTest(stageX: number, stageY: number): DisplayObject;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        /**
         * @private
         */
        $onRemoveFromStage(): void;
        $onAddToStage(stage: egret.Stage, nestLevel: number): void;
    }
}
/**
@author 迷途小羔羊
2012.1.22
*/
declare module GYLite {
    /**羔羊组件的基类容器，使用羔羊组件时，建议至少使用此容器或者此容器的继承容器
     * 羔羊组件并不屏蔽原生的sprite、shape(可以使用s.addChild s.addChildAt等)，但是原生的容器类不参与组件布局或者计算
     * 所以建议使用GYSprite代替Sprite*/
    class GYSprite extends egret.Sprite implements IGYInteractiveDisplay, IGYContainer, IUpdate, IBatch {
        protected static _mouseDownVec: MouseRelease[];
        protected static _mouseWheelVec: MouseWheel[];
        static $skinTheme: ISkinTheme;
        /**内部使用*/ static mouseDownEvent: egret.TouchEvent;
        static _matrix: egret.Matrix;
        static _rect: egret.Rectangle;
        static _pt: egret.Point;
        /**请在初始化之后下一帧读取此值,此前为null*/ static player: any;
        static _globalDragList: GYGroup[];
        static stageX: number;
        static stageY: number;
        private static _touchDict;
        static isMobile: boolean;
        static hashCode: number;
        static globalVDrag: number;
        static globalVDragCount: number;
        static globalHDrag: number;
        static globalHDragCount: number;
        protected static _root: egret.DisplayObjectContainer;
        /**暂时没用*/ static useStarling: boolean;
        /**版本号*/ static version: string;
        static $stage: egret.Stage;
        static $disposed: boolean;
        private static playerInited;
        /**初始化组件库，在组件库使用之前必须先调用此方法初始化
         * @param stg 舞台
         * @param theme 主题
         * @param rt 根容器容器，默认为null，使用stg作为根容器
        */
        static Init(stg: egret.Stage, theme: ISkinTheme, rt?: egret.DisplayObjectContainer): void;
        static get disposed(): boolean;
        static dispose(e?: egret.Event): void;
        /**对引擎进行垃圾回收*/
        static gc(): void;
        /**Stage舞台*/
        static get stage(): egret.Stage;
        /** 全局的鼠标按下回调,请使用GYSprite.addStageDown添加回调侦听 */
        private static stageMouseDown;
        static removeTouch(touchPointID: number): void;
        static addTouch(touchPointID: number, x: number, y: number): void;
        static getTouch(touchPointID: number): any;
        static getTouchX(touchPointID?: number): number;
        static getTouchY(touchPointID?: number): number;
        /** 全局的鼠标滚轮,请使用GYSprite.addStageWheel添加回调侦听 */
        protected static stageMouseWheel(e: any): void;
        /**添加舞台滚轮对象
         * @param sp 显示对象
         * @param mouseWheelFunc(e:GYTouchEvent):void 鼠标滚动时的回调函数
         * */
        static addStageWheel(sp: IGYDisplay, mouseWheelFunc?: Function, thisObject?: any): void;
        /**移除舞台滚轮对象
         * @param sp 显示对象
         * @param mouseWheelFunc(e:GYTouchEvent):void 鼠标滚动时的回调函数
         * */
        static removeStageWheel(d: IGYDisplay, func?: Function): void;
        protected static findMouseWheel(d: IGYDisplay, func?: Function): MouseWheel;
        /** 全局的鼠标抬起回调,请使用GYSprite.addStageDown添加回调侦听 */
        protected static stageMouseUp(e: any): void;
        /**添加舞台点击对象
         * @param sp 显示对象
         * @param mouseUpFunc(e:GYTouchEvent):void 鼠标抬起时的回调函数
         * @param uUp 是否监听直到鼠标在外部释放 GYTouchEvent的result为1时，则会一直监听，默认false
         * @param touchPointID 触摸id，默认为NaN，即任意id的手指抬起均触发
         * */
        static addStageDown(sp: IGYDisplay, mouseUpFunc?: Function, thisObject?: any, uUp?: boolean, touchPointID?: number): void;
        /**是否当前鼠标按下的对象
         * @param sp 显示对象
         * @return Boolean
         * */
        static isStageDown(sp: IGYDisplay): boolean;
        protected static findMouseRel(d: IGYDisplay, func?: Function): MouseRelease;
        protected static hasGlobalVDrag(): boolean;
        protected static hasGlobalHDrag(): boolean;
        protected static pushGlobalDrag(sp: GYGroup): boolean;
        /**1纵向 2横向*/
        protected static shiftGlobalDrag(policy: number): boolean;
        protected static clearGlobalDrags(): void;
        /**
         * 设置主题皮肤，监听GYThemeEvent.THEME_CHANGE通知
         * */
        static set skinTheme(val: ISkinTheme);
        static get skinTheme(): ISkinTheme;
        $width: number;
        $height: number;
        $layoutParent: GYUIComponent;
        protected _layoutMode: LayoutMode;
        protected _invalidDisplay: boolean;
        protected _invalidLayout: boolean;
        protected _updating: boolean;
        protected _toolTip: GYToolTip;
        protected _toolTipOffsetX: number;
        protected _toolTipOffsetY: number;
        protected _toolTipString: string;
        protected _toolTipKeep: boolean;
        protected _followTarget: GYSprite;
        protected _toolTipOnKeep: boolean;
        private _doubleClkTime;
        private _doubelClk;
        /**GYSprite元素列表*/
        protected elementVec: IGYDisplay[];
        protected _bound: egret.Rectangle;
        protected _elementbound: egret.Rectangle;
        protected _invalidZIndex: boolean;
        protected _disabledZIndex: boolean;
        $disposed: boolean;
        /**防销毁锁定标志，为true则不会被dispose销毁，除非参数forceDispose为true*/ disposeLock: boolean;
        /**是否tip跟随鼠标*/ isTipFollow: boolean;
        /**是否不参与布局计算*/ offLayout: boolean;
        /**视图坐标变化通知很多时候不需通知父级，可用此控制是否使用*/
        posCallUpdate: boolean;
        /**视图变化通知很多时候不需通知父级，可用此控制是否使用*/
        viewChangeCallParent: boolean;
        /**鼠标经过时手型，true为默认手指或者指定一个网络图片，32X32以下*/ buttonModeForMouse: any;
        protected _invalidBatch: boolean;
        protected _batchDrawParam: BatchDrawParam;
        protected _batch: boolean;
        protected _batchAtlasName: string;
        constructor();
        clearBatch(): void;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**合批图像的绘制样式**/
        getBatchDrawParam(): BatchDrawParam;
        setBatchAtlasName(val: string): void;
        /**合批图集名称，不存在找父级容器的，如果都不存在，默认AtlasRender.defaultAtlasName**/
        getBatchAtlasName(): string;
        /** 舞台渲染前执行 */
        protected displayChg(): void;
        get mouseX(): number;
        get mouseY(): number;
        get touch(): number;
        /**设置双击回调*/
        setDoubleClk(func: Function, thisObject: any): void;
        /**设置滚轮回调 */
        private _wheelFunc;
        setWheelFunc(func: Function, thisObject?: any): void;
        /**获取所有对象边界矩形*/
        getAllBounds(t: IGYDisplay): egret.Rectangle;
        /**获取所有对象边界矩形**/
        getElementsBounds(t: IGYDisplay): egret.Rectangle;
        /**根据索引获取元素 */
        getElementAt(index: number): IGYDisplay;
        /**根据获取元素层级 */
        getElementIndex(child: IGYDisplay): number;
        /**删除元素*/
        delElement(child: IGYDisplay): void;
        /**添加元素 */
        addElement(child: IGYDisplay): IGYDisplay;
        /**添加元素到指定层级*/
        addElementAt(child: IGYDisplay, index: number): IGYDisplay;
        /**移除元素*/
        removeElement(child: IGYDisplay): IGYDisplay;
        /**移除所有元素*/
        removeAllElement(): void;
        /**移除指定层级的元素*/
        removeElementAt(index: number): IGYDisplay;
        /**设置元素层级*/
        setElementIndex(child: IGYDisplay, index: number): void;
        /**交换元素层级*/
        swapElementIndex(child1: IGYDisplay, child2: IGYDisplay): void;
        set x(val: number);
        set y(val: number);
        get x(): number;
        get y(): number;
        set width(val: number);
        set height(val: number);
        get width(): number;
        get height(): number;
        set_width(val: number): boolean;
        set_height(val: number): boolean;
        get_width(): number;
        get_height(): number;
        /**设置百分比宽度,范围[0,1]*/
        get percentWidth(): number;
        set percentWidth(val: number);
        /**设置百分比高度,范围[0,1]*/
        get percentHeight(): number;
        set percentHeight(val: number);
        /**是否百分比的宽高*/
        isPercentSize(): boolean;
        set layoutMode(val: LayoutMode);
        /**布局对象*/
        get layoutMode(): LayoutMode;
        viewChange(): void;
        /**重写s.updateView可以为其添加延时计算的内容(做法仿照s.invalidDisplay)，GYSprite内置了布局s.layout以及子级布局s.childLayout的延时计算
         * 切记避免死循环的延时计算，例如延时执行A，在A的执行里面又触发了A的延时执行
         * */
        updateView(): void;
        /**css层级显示*/
        invalidZIndex(): void;
        validZIndex(): void;
        /**刷新显示*/
        invalidDisplay(): void;
        /**刷新子级布局*/
        invalidLayout(): void;
        /**禁止zindex层级排序*/
        get disabledZIndex(): boolean;
        set disabledZIndex(val: boolean);
        /**添加父级布局容器，以便父级变化时通知子级布局
         * @param p父级容器
         * */
        addLayout(p: GYUIComponent): void;
        /**获取布局容器(因为存在双层容器如GYGroup，用此方法取相对布局容器更准确)*/
        getLayoutContainer(): egret.DisplayObjectContainer;
        /**父级*/
        get layoutParent(): GYUIComponent;
        protected layoutChange(e: GYViewEvent): void;
        set left(val: number);
        set top(val: number);
        set right(val: number);
        set bottom(val: number);
        set horizonalCenter(val: number);
        set verticalCenter(val: number);
        /**相对左边布局*/
        get left(): number;
        /**相对顶部布局*/
        get top(): number;
        /**相对右边布局*/
        get right(): number;
        /**相对底边布局*/
        get bottom(): number;
        /**水平居中*/
        get horizonalCenter(): number;
        /**垂直居中*/
        get verticalCenter(): number;
        childLayout(): void;
        /**刷新相对布局*/
        layout(): void;
        /**刷新相对大小*/
        sizeChange(): void;
        get numElement(): number;
        /**获取设定的宽度*/
        get settingWidth(): number;
        /**获取设定的高度*/
        get settingHeight(): number;
        /**提示文本,可以通过s.toolTip设置自定义的GYToolTip(继承此类重写实现)*/
        set toolTipString(val: string);
        get toolTipString(): string;
        set toolTip(val: GYToolTip);
        /**s.toolTip，继承GYToolTip实现自定义@see GYToolTip*/
        get toolTip(): GYToolTip;
        protected rollOverTip(e?: egret.TouchEvent): void;
        showTip(keep?: boolean, followTarget?: GYSprite): void;
        protected rollOutTip(e?: egret.TouchEvent): void;
        protected mouseOutTip(e?: egret.TouchEvent): void;
        /**tip偏移量X*/
        get toolTipOffsetX(): number;
        set toolTipOffsetX(value: number);
        /**tip偏移量Y*/
        get toolTipOffsetY(): number;
        set toolTipOffsetY(value: number);
        /**是否保留tip直到鼠标抬起*/
        get toolTipKeep(): boolean;
        set toolTipKeep(value: boolean);
        /**tip跟随对象*/
        get followTarget(): GYSprite;
        set followTarget(value: GYSprite);
        /**是否刷新中（内部使用请勿修改）*/
        get updating(): boolean;
        set updating(value: boolean);
        getElementList(): Array<IGYDisplay>;
        /**是否在父级视图范围内(0,0,width,height),可用于做裁切视图时的离屏渲染优化*/
        inParentView(l?: number, r?: number, t?: number, b?: number): boolean;
        /**销毁
         * @param disposeChild 是否连同显示列表上的子级也销毁，默认true
         * @param removeChild 是否从父级显示列表中移除，默认true
         * @param forceDispose 是否强制销毁，为true表示无视disposeLock标志，进行销毁，默认false
        */
        dispose(disposeChild?: boolean, removeChild?: boolean, forceDispose?: boolean): void;
        /**是否已经被销毁*/
        get disposed(): boolean;
        invalidBatch(): void;
        validBatch(): void;
        enableBatch(val: boolean): void;
        /**是否动态合批，请在文本渲染前设定，默认根据父级容器batch，如果父级也没设定，则默认false*/
        isBatch(): boolean;
    }
    class MouseWheel {
        private static _pool;
        static getInstance(d: IGYDisplay, callBack: Function, thisObject: any): MouseWheel;
        callBack: Function;
        display: IGYDisplay;
        thisObject: any;
    }
    class MouseRelease {
        private static _pool;
        static getInstance(d: IGYDisplay, callBack: Function, thisObject: any, touchPointID?: number): MouseRelease;
        callBack: Function;
        display: IGYDisplay;
        untilUp: boolean;
        thisObject: any;
        touchPointID: number;
        constructor();
        clear(): void;
    }
}
declare module GYLite {
    /**UIComponent是有组件的基础组件，具有布局与监听视图变化功能，
     * 拥有视图改变的事件通知,以便通知子级父级容器变化，如只需要布局的普通容器建议使用GYSprite*/
    class GYUIComponent extends GYSprite {
        protected _boundRect: egret.Rectangle;
        protected _elementsRect: egret.Rectangle;
        $paddingLeft: number;
        $paddingRight: number;
        $paddingTop: number;
        $paddingBottom: number;
        $contentWidth: number;
        $contentHeight: number;
        constructor();
        /**视图改变，派发VIEWCHANGE事件并通知父级GYUIComponent调用s.viewChange*/
        viewChange(): void;
        addElement(child: IGYDisplay): IGYDisplay;
        addElementAt(child: IGYDisplay, index: number): IGYDisplay;
        removeElement(child: IGYDisplay): IGYDisplay;
        removeElementAt(index: number): IGYDisplay;
        set paddingLeft(val: number);
        set paddingRight(val: number);
        set paddingTop(val: number);
        set paddingBottom(val: number);
        set_paddingLeft(val: number): void;
        set_paddingRight(val: number): void;
        set_paddingTop(val: number): void;
        set_paddingBottom(val: number): void;
        updateView(): void;
        /**左边距*/
        get paddingLeft(): number;
        /**右边距*/
        get paddingRight(): number;
        /**上边距*/
        get paddingTop(): number;
        /**底边距*/
        get paddingBottom(): number;
        set x(val: number);
        get x(): number;
        set y(val: number);
        get y(): number;
        set_width(val: number): boolean;
        get_width(): number;
        set_height(val: number): boolean;
        get_height(): number;
        /**不带边距的宽度*/
        get baseWidth(): number;
        /**不带边距的高度*/
        get baseHeight(): number;
        set scaleX(val: number);
        get scaleX(): number;
        set scaleY(val: number);
        get scaleY(): number;
        /**获取element元素边框宽度*/
        get borderWidth(): number;
        /**获取element元素边框高度*/
        get borderHeight(): number;
        /**@inheritDoc
         * 忽略s.scrollRect
         * */
        getAllBounds(t: IGYDisplay): egret.Rectangle;
        /**@inheritDoc*/
        getElementsBounds(t: IGYDisplay): egret.Rectangle;
        /**同时设置4个边距*/
        setPadding(val: number): void;
        /**内容宽度*/
        get contentWidth(): number;
        /**内容高度*/
        get contentHeight(): number;
    }
}
declare module GYLite {
    /**组合输入菜单, 可以使用ISkinTheme的GetComboBox快速构建
     * <p>
     * combobox的s.menu.listV为其下拉列表，当选中列表项，自动调用s.menu.listV.selectedItem.toString()显示选中内容到输入框，请重写s.menu.listV.selectedItem 的toString()方法以显示选择内容
     * 请在创建BomboBox之后设置s.comboBoxBtn、s.menu和s.textInput三个属性，构建完整的comboBox
     * </p>
     * */
    class GYComboBox extends GYUIComponent {
        protected _textInput: GYTextInput;
        protected _menu: GYMenu;
        protected _comboBoxBtn: GYButton;
        protected _autoClose: boolean;
        private _clickShow;
        menuParent: GYSprite;
        private _menuX;
        private _menuY;
        constructor();
        set menu(val: GYMenu);
        /**comboBox的下拉菜单GYMenu 不能为null*/
        get menu(): GYMenu;
        protected selectItem(e: GYViewEvent): void;
        set selectedData(val: any);
        get selectedData(): any;
        set selectedIndex(val: number);
        get selectedIndex(): number;
        set textInput(val: GYTextInput);
        /**comboBox的输入框TextInput，不能为null*/
        get textInput(): GYTextInput;
        set comboBoxBtn(val: GYButton);
        /***设置菜单位置*/
        setMenuPos(x: number, y: number): void;
        protected themeChange(e: GYThemeEvent): void;
        /**comboBox的下拉按钮GYButton，不能为null*/
        get comboBoxBtn(): GYButton;
        protected clkBtn(e: egret.TouchEvent): void;
        /**显示菜单*/
        showMenu(): void;
        /**隐藏菜单*/
        hideMenu(): void;
        protected textChange(e: egret.Event): void;
        get autoClose(): boolean;
        set autoClose(value: boolean);
        protected outsideRelease(e: GYTouchEvent): void;
        get clickShow(): boolean;
        set clickShow(value: boolean);
    }
}
declare module GYLite {
    class GYMouseTip {
        static t: GYText;
        private static flyTxt;
        private static count;
        static showFlyTip(val: string): void;
        private static flyLoop;
        static showTip(val: string): void;
        private static tipLoop;
        static hideTip(): void;
    }
}
declare namespace egret.sys {
    /**
     * @private
     */
    const enum TextKeys {
        /**
         * @private
         */
        fontSize = 0,
        /**
         * @private
         */
        lineSpacing = 1,
        /**
         * @private
         */
        textColor = 2,
        /**
         * @private
         */
        textFieldWidth = 3,
        /**
         * @private
         */
        textFieldHeight = 4,
        /**
         * @private
         */
        textWidth = 5,
        /**
         * @private
         */
        textHeight = 6,
        /**
         * @private
         */
        textDrawWidth = 7,
        /**
         * @private
         */
        fontFamily = 8,
        /**
         * @private
         */
        textAlign = 9,
        /**
         * @private
         */
        verticalAlign = 10,
        /**
         * @private
         */
        textColorString = 11,
        /**
         * @private
         */
        fontString = 12,
        /**
         * @private
         */
        text = 13,
        /**
         * @private
         */
        measuredWidths = 14,
        /**
         * @private
         */
        bold = 15,
        /**
         * @private
         */
        italic = 16,
        /**
         * @private
         */
        fontStringChanged = 17,
        /**
         * @private
         */
        textLinesChanged = 18,
        /**
         * @private
         */
        wordWrap = 19,
        /**
         * @private
         */
        displayAsPassword = 20,
        /**
         * @private
         */
        maxChars = 21,
        /**
         * @private
         */
        selectionActivePosition = 22,
        /**
         * @private
         */
        selectionAnchorPosition = 23,
        /**
         * @private
         */
        type = 24,
        /**
         * @private
         */
        strokeColor = 25,
        /**
         * @private
         */
        strokeColorString = 26,
        /**
         * @private
         */
        stroke = 27,
        /**
         * @private
         */
        scrollV = 28,
        /**
         * @private
         */
        numLines = 29,
        /**
         * @private
         */
        multiline = 30,
        /**
         * @private
         */
        border = 31,
        /**
         * @private
         */
        borderColor = 32,
        /**
         * @private
         */
        background = 33,
        /**
         * @private
         */
        backgroundColor = 34,
        /**
         * @private
         */
        restrictAnd = 35,
        /**
         * @private
         */
        restrictNot = 36,
        /**
         * @private
         */
        inputType = 37,
        /**
         * @private
         */
        textLinesChangedForNativeRender = 38
    }
}
declare namespace egret {
    /**
     * add new language word wrap regex and use it
     * if languageKey already exists,the existing regex is replaced
     * if the pattern is not passed,it will be found and enabled int the existing word wrap map
     * @param languageKey
     * @param pattern
     * @version Egret 5.3.11
     * @platform Web
     * @language en_US
     */
    /**
     * 添加新的自动换行的语言正则表达式匹配并启用
     * 如果已经有该语言了，则会替换现有正则表达式
     * 不传入正则表达式则会在已有的语言自动换行匹配串中寻找并启用
     * @param languageKey
     * @param pattern
     * @version Egret 5.3.11
     * @platform Web
     * @language zh_CN
     */
    function addLanguageWordWrapRegex(languageKey: string, pattern?: string): void;
    /**
     * return the existing word wrap keys
     * @version Egret 5.3.11
     * @platform Web
     * @language en_US
     */
    /**
     * 获取当前已有的自动换行映射键值组
     * @version Egret 5.3.11
     * @platform Web
     * @language zh_CN
     */
    function getAllSupportLanguageWordWrap(): string[];
    /**
     * return the using word wrap keys
     * @version Egret 5.3.11
     * @platform Web
     * @language en_US
     */
    /**
     * 获取当前正在使用中的自动换行映射键值组
     * @version Egret 5.3.11
     * @platform Web
     * @language zh_CN
     */
    function getUsingWordWrap(): string[];
    /**
     * cancels the using word wrap regex by the languageKey
     * @version Egret 5.3.11
     * @platform Web
     * @language en_US
     */
    /**
     * 根据languageKey取消正在启用的自动换行正则表达式
     * @version Egret 5.3.11
     * @platform Web
     * @language zh_CN
     */
    function cancelLanguageWordWrapRegex(languageKey: string): void;
    /**
     * TextField is the text rendering class of egret. It conducts rendering by using the browser / device API. Due to different ways of font rendering in different browsers / devices, there may be differences in the rendering
     * If developers expect  no differences among all platforms, please use BitmapText
     * @see http://edn.egret.com/cn/docs/page/141 Create Text
     *
     * @event egret.Event.CHANGE Dispatched when entering text user input。
     * @event egret.FocusEvent.FOCUS_IN Dispatched after the focus to enter text.
     * @event egret.FocusEvent.FOCUS_OUT Enter the text loses focus after dispatch.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/TextField.ts
     * @language en_US
     */
    /**
     * TextField是egret的文本渲染类，采用浏览器/设备的API进行渲染，在不同的浏览器/设备中由于字体渲染方式不一，可能会有渲染差异
     * 如果开发者希望所有平台完全无差异，请使用BitmapText
     * @see http://edn.egret.com/cn/docs/page/141 创建文本
     *
     * @event egret.Event.CHANGE 输入文本有用户输入时调度。
     * @event egret.FocusEvent.FOCUS_IN 聚焦输入文本后调度。
     * @event egret.FocusEvent.FOCUS_OUT 输入文本失去焦点后调度。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/TextField.ts
     * @language zh_CN
     */
    class TextField extends DisplayObject {
        /**
         * default fontFamily
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 默认文本字体
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static default_fontFamily: string;
        /**
         * default size in pixels of text
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 默认文本字号大小
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language zh_CN
         */
        static default_size: number;
        /**
         * default color of the text.
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 默认文本颜色
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language zh_CN
         */
        static default_textColor: number;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        constructor();
        protected createNativeDisplayObject(): void;
        /**
         * @private
         */
        $TextField: Object;
        /**
         * @private
         */
        private isInput;
        $inputEnabled: boolean;
        $setTouchEnabled(value: boolean): void;
        /**
         * The name of the font to use, or a comma-separated list of font names.
         * @default "Arial"
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 要使用的字体的名称或用逗号分隔的字体名称列表。
         * @default "Arial"
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get fontFamily(): string;
        set fontFamily(value: string);
        $setFontFamily(value: string): boolean;
        /**
         * The size in pixels of text
         * @default 30
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本的字号大小。
         * @default 30
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get size(): number;
        set size(value: number);
        $setSize(value: number): boolean;
        /**
         * Specifies whether the text is boldface.
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否显示为粗体。
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bold(): boolean;
        set bold(value: boolean);
        $setBold(value: boolean): boolean;
        /**
         * Determines whether the text is italic font.
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否显示为斜体。
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get italic(): boolean;
        set italic(value: boolean);
        $setItalic(value: boolean): boolean;
        /**
         * @private
         *
         */
        private invalidateFontString;
        /**
         * Horizontal alignment of text.
         * @default：egret.HorizontalAlign.LEFT
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本的水平对齐方式。
         * @default：egret.HorizontalAlign.LEFT
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textAlign(): string;
        set textAlign(value: string);
        $setTextAlign(value: string): boolean;
        /**
         * Vertical alignment of text.
         * @default：egret.VerticalAlign.TOP
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文字的垂直对齐方式。
         * @default：egret.VerticalAlign.TOP
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get verticalAlign(): string;
        set verticalAlign(value: string);
        $setVerticalAlign(value: string): boolean;
        /**
         * An integer representing the amount of vertical space between lines.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个整数，表示行与行之间的垂直间距量
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get lineSpacing(): number;
        set lineSpacing(value: number);
        $setLineSpacing(value: number): boolean;
        /**
         * Color of the text.
         * @default 0x000000
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本颜色
         * @default 0x000000
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textColor(): number;
        set textColor(value: number);
        $setTextColor(value: number): boolean;
        /**
         * A Boolean value that indicates whether the text field word wrap. If the value is true, then the text field by word wrap;
         * if the value is false, the text field by newline characters.
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个布尔值，表示文本字段是否按单词换行。如果值为 true，则该文本字段按单词换行；
         * 如果值为 false，则该文本字段按字符换行。
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get wordWrap(): boolean;
        set wordWrap(value: boolean);
        $setWordWrap(value: boolean): void;
        protected inputUtils: InputController;
        /**
         * Type of the text field.
         * Any one of the following TextFieldType constants: TextFieldType.DYNAMIC (specifies the dynamic text field that users can not edit), or TextFieldType.INPUT (specifies the dynamic text field that users can edit).
         * @default egret.TextFieldType.DYNAMIC
         * @language en_US
         */
        /**
         * 文本字段的类型。
         * 以下 TextFieldType 常量中的任一个：TextFieldType.DYNAMIC（指定用户无法编辑的动态文本字段），或 TextFieldType.INPUT（指定用户可以编辑的输入文本字段）。
         * @default egret.TextFieldType.DYNAMIC
         * @language zh_CN
         */
        set type(value: string);
        /**
         * @private
         *
         * @param value
         */
        $setType(value: string): boolean;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get type(): string;
        /**
         * Pop-up keyboard type.
         * Any of a TextFieldInputType constants.
         * @language en_US
         */
        /**
         * 弹出键盘的类型。
         * TextFieldInputType 常量中的任一个。
         * @language zh_CN
         */
        set inputType(value: string);
        /**
         * @version Egret 3.1.2
         * @platform Web,Native
         */
        get inputType(): string;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get text(): string;
        /**
         * @private
         *
         * @returns
         */
        $getText(): string;
        /**
         * Serve as a string of the current text field in the text
         * @language en_US
         */
        /**
         * 作为文本字段中当前文本的字符串
         * @language zh_CN
         */
        set text(value: string);
        /**
         * @private
         *
         * @param value
         */
        $setBaseText(value: string): boolean;
        /**
         * @private
         *
         * @param value
         */
        $setText(value: string): boolean;
        /**
         * Specify whether the text field is a password text field.
         * If the value of this property is true, the text field is treated as a password text field and hides the input characters using asterisks instead of the actual characters. If false, the text field is not treated as a password text field.
         * @default false
         * @language en_US
         */
        /**
         * 指定文本字段是否是密码文本字段。
         * 如果此属性的值为 true，则文本字段被视为密码文本字段，并使用星号而不是实际字符来隐藏输入的字符。如果为 false，则不会将文本字段视为密码文本字段。
         * @default false
         * @language zh_CN
         */
        get displayAsPassword(): boolean;
        set displayAsPassword(value: boolean);
        /**
         * @private
         *
         * @param value
         */
        $setDisplayAsPassword(value: boolean): boolean;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get strokeColor(): number;
        /**
         * Represent the stroke color of the text.
         * Contain three 8-bit numbers with RGB color components; for example, 0xFF0000 is red, 0x00FF00 is green.
         * @default 0x000000
         * @language en_US
         */
        /**
         * 表示文本的描边颜色。
         * 包含三个 8 位 RGB 颜色成分的数字；例如，0xFF0000 为红色，0x00FF00 为绿色。
         * @default 0x000000
         * @language zh_CN
         */
        set strokeColor(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setStrokeColor(value: number): boolean;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get stroke(): number;
        /**
         * Indicate the stroke width.
         * 0 means no stroke.
         * @default 0
         * @language en_US
         */
        /**
         * 表示描边宽度。
         * 0为没有描边。
         * @default 0
         * @language zh_CN
         */
        set stroke(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setStroke(value: number): boolean;
        /**
         * The maximum number of characters that the text field can contain, as entered by a user. \n A script can insert more text than maxChars allows; the maxChars property indicates only how much text a user can enter. If the value of this property is 0, a user can enter an unlimited amount of text.
         * The default value is 0.
         * @default 0
         * @language en_US
         */
        /**
         * 文本字段中最多可包含的字符数（即用户输入的字符数）。
         * 脚本可以插入比 maxChars 允许的字符数更多的文本；maxChars 属性仅表示用户可以输入多少文本。如果此属性的值为 0，则用户可以输入无限数量的文本。
         * @default 0
         * @language zh_CN
         */
        get maxChars(): number;
        set maxChars(value: number);
        /**
         * @private
         *
         * @param value
         */
        $setMaxChars(value: number): boolean;
        /**
         * Vertical position of text in a text field. scrollV property helps users locate specific passages in a long article, and create scrolling text fields.
         * Vertically scrolling units are lines, and horizontal scrolling unit is pixels.
         * If the first displayed line is the first line in the text field, scrollV is set to 1 (instead of 0).
         * @language en_US
         */
        /**
         * 文本在文本字段中的垂直位置。scrollV 属性可帮助用户定位到长篇文章的特定段落，还可用于创建滚动文本字段。
         * 垂直滚动的单位是行，而水平滚动的单位是像素。
         * 如果显示的第一行是文本字段中的第一行，则 scrollV 设置为 1（而非 0）。
         * @language zh_CN
         */
        set scrollV(value: number);
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get scrollV(): number;
        /**
         * The maximum value of scrollV
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * scrollV 的最大值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get maxScrollV(): number;
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        get selectionBeginIndex(): number;
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        get selectionEndIndex(): number;
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        get caretIndex(): number;
        /**
         * @private
         *
         * @param beginIndex
         * @param endIndex
         */
        $setSelection(beginIndex: number, endIndex: number): boolean;
        /**
         * @private
         *
         * @returns
         */
        $getLineHeight(): number;
        /**
         * Number of lines of text.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本行数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get numLines(): number;
        /**
         * Indicate whether field is a multiline text field. Note that this property is valid only when the type is TextFieldType.INPUT.
         * If the value is true, the text field is multiline; if the value is false, the text field is a single-line text field. In a field of type TextFieldType.INPUT, the multiline value determines whether the Enter key creates a new line (a value of false, and the Enter key is ignored).
         * @default false
         * @language en_US
         */
        /**
         * 表示字段是否为多行文本字段。注意，此属性仅在type为TextFieldType.INPUT时才有效。
         * 如果值为 true，则文本字段为多行文本字段；如果值为 false，则文本字段为单行文本字段。在类型为 TextFieldType.INPUT 的字段中，multiline 值将确定 Enter 键是否创建新行（如果值为 false，则将忽略 Enter 键）。
         * @default false
         * @language zh_CN
         */
        set multiline(value: boolean);
        /**
         * @private
         *
         * @param value
         */
        $setMultiline(value: boolean): boolean;
        get multiline(): boolean;
        /**
         * Indicates a user can enter into the text field character set. If you restrict property is null, you can enter any character. If you restrict property is an empty string, you can not enter any character. If you restrict property is a string of characters, you can enter only characters in the string in the text field. The string is scanned from left to right. You can use a hyphen (-) to specify a range. Only restricts user interaction; a script may put any text into the text field. <br/>
                  * If the string of characters caret (^) at the beginning, all characters are initially accepted, then the string are excluded from receiving ^ character. If the string does not begin with a caret (^) to, any characters are initially accepted and then a string of characters included in the set of accepted characters. <br/>
                  * The following example allows only uppercase characters, spaces, and numbers in the text field: <br/>
                  * My_txt.restrict = "A-Z 0-9"; <br/>
                  * The following example includes all characters except lowercase letters: <br/>
                  * My_txt.restrict = "^ a-z"; <br/>
                  * If you need to enter characters \ ^, use two backslash "\\ -" "\\ ^": <br/>
                  * Can be used anywhere in the string ^ to rule out including characters and switch between characters, but can only be used to exclude a ^. The following code includes only uppercase letters except uppercase Q: <br/>
                  * My_txt.restrict = "A-Z ^ Q"; <br/>
         * @version Egret 2.4
         * @platform Web,Native
         * @default null
         * @language en_US
         */
        /**
         * 表示用户可输入到文本字段中的字符集。如果 restrict 属性的值为 null，则可以输入任何字符。如果 restrict 属性的值为空字符串，则不能输入任何字符。如果 restrict 属性的值为一串字符，则只能在文本字段中输入该字符串中的字符。从左向右扫描该字符串。可以使用连字符 (-) 指定一个范围。只限制用户交互；脚本可将任何文本放入文本字段中。<br/>
         * 如果字符串以尖号 (^) 开头，则先接受所有字符，然后从接受字符集中排除字符串中 ^ 之后的字符。如果字符串不以尖号 (^) 开头，则最初不接受任何字符，然后将字符串中的字符包括在接受字符集中。<br/>
         * 下例仅允许在文本字段中输入大写字符、空格和数字：<br/>
         * my_txt.restrict = "A-Z 0-9";<br/>
         * 下例包含除小写字母之外的所有字符：<br/>
         * my_txt.restrict = "^a-z";<br/>
         * 如果需要输入字符 \ ^，请使用2个反斜杠 "\\-" "\\^" ：<br/>
         * 可在字符串中的任何位置使用 ^，以在包含字符与排除字符之间进行切换，但是最多只能有一个 ^ 用来排除。下面的代码只包含除大写字母 Q 之外的大写字母：<br/>
         * my_txt.restrict = "A-Z^Q";<br/>
         * @version Egret 2.4
         * @platform Web,Native
         * @default null
         * @language zh_CN
         */
        set restrict(value: string);
        get restrict(): string;
        /**
         * @private
         *
         * @param value
         */
        $setWidth(value: number): boolean;
        /**
         * @private
         *
         * @param value
         */
        $setHeight(value: number): boolean;
        /**
         * @private
         * 获取显示宽度
         */
        $getWidth(): number;
        /**
         * @private
         * 获取显示宽度
         */
        $getHeight(): number;
        /**
         * @protected //GYLite
         */
        protected textNode: sys.TextNode;
        /**
         * @private
         */
        $graphicsNode: sys.GraphicsNode;
        /**
         * Specifies whether the text field has a border.
         * If true, the text field has a border. If false, the text field has no border.
         * Use borderColor property to set the border color.
         * @default false
         * @language en_US
         */
        /**
         * 指定文本字段是否具有边框。
         * 如果为 true，则文本字段具有边框。如果为 false，则文本字段没有边框。
         * 使用 borderColor 属性来设置边框颜色。
         * @default false
         * @language zh_CN
         */
        set border(value: boolean);
        /**
         * @private
         */
        $setBorder(value: boolean): void;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get border(): boolean;
        /**
         * The color of the text field border.
         * Even currently is no border can be retrieved or set this property, but only if the text field has the border property is set to true, the color is visible.
         * @default 0x000000
         * @language en_US
         */
        /**
         * 文本字段边框的颜色。
         * 即使当前没有边框，也可检索或设置此属性，但只有当文本字段已将 border 属性设置为 true 时，才可以看到颜色。
         * @default 0x000000
         * @language zh_CN
         */
        set borderColor(value: number);
        /**
         * @private
         */
        $setBorderColor(value: number): void;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get borderColor(): number;
        /**
         * Specifies whether the text field has a background fill.
         * If true, the text field has a background fill. If false, the text field has no background fill.
         * Use the backgroundColor property to set the background color of the text field.
         * @default false
         * @language en_US
         */
        /**
         * 指定文本字段是否具有背景填充。
         * 如果为 true，则文本字段具有背景填充。如果为 false，则文本字段没有背景填充。
         * 使用 backgroundColor 属性来设置文本字段的背景颜色。
         * @default false
         * @language zh_CN
         */
        set background(value: boolean);
        /**
         * @private
         */
        $setBackground(value: boolean): void;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get background(): boolean;
        /**
         * Color of the text field background.
         * Even currently is no background, can be retrieved or set this property, but only if the text field has the background property set to true, the color is visible.
         * @default 0xFFFFFF
         * @language en_US
         */
        /**
         * 文本字段背景的颜色。
         * 即使当前没有背景，也可检索或设置此属性，但只有当文本字段已将 background 属性设置为 true 时，才可以看到颜色。
         * @default 0xFFFFFF
         * @language zh_CN
         */
        set backgroundColor(value: number);
        /**
         * @private
         */
        $setBackgroundColor(value: number): void;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get backgroundColor(): number;
        /**
         * @protected //GYLite
         *
         */
        protected fillBackground(lines?: number[]): void;
        /**
         * Enter the text automatically entered into the input state, the input type is text only and may only be invoked in the user interaction.
         * @version Egret 3.0.8
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 输入文本自动进入到输入状态，仅在类型是输入文本并且是在用户交互下才可以调用。
         * @version Egret 3.0.8
         * @platform Web,Native
         * @language zh_CN
         */
        setFocus(): void;
        /**
         * @private
         *
         */
        $onRemoveFromStage(): void;
        /**
         * @private
         *
         * @param stage
         * @param nestLevel
         */
        $onAddToStage(stage: Stage, nestLevel: number): void;
        $invalidateTextField(): void;
        $getRenderBounds(): Rectangle;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        $updateRenderNode(): void;
        /**
         * @private
         */
        private isFlow;
        /**
         * Set rich text
         * @language en_US
         */
        /**
         * 设置富文本
         * @see http://edn.egret.com/cn/index.php/article/index/id/146
         * @language zh_CN
         */
        set textFlow(textArr: Array<egret.ITextElement>);
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        get textFlow(): Array<egret.ITextElement>;
        /**
         * @private
         *
         * @param text
         * @returns
         */
        private changeToPassText;
        /**
         * @protected //GYLite
         */
        protected textArr: Array<egret.ITextElement>;
        /**
         * @private
         *
         * @param textArr
         */
        private setMiddleStyle;
        /**
         * Get the text measured width
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取文本测量宽度
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textWidth(): number;
        /**
         * Get Text measuring height
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取文本测量高度
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textHeight(): number;
        /**
         * @private
         * @param text
         * @version Egret 2.4
         * @platform Web,Native
         */
        appendText(text: string): void;
        /**
         * @private
         * @param element
         * @version Egret 2.4
         * @platform Web,Native
         */
        appendElement(element: egret.ITextElement): void;
        /**
         * @private
         */
        linesArr: Array<egret.ILineElement>;
        $getLinesArr(): Array<egret.ILineElement>;
        /**
         * @private
         *
         * @returns
         */
        $getLinesArr2(): Array<egret.ILineElement>;
        /**
         * @private
         */
        $isTyping: boolean;
        /**
         * @private
         */
        $setIsTyping(value: boolean): void;
        /**
         * @protected GYLite
         * 返回要绘制的下划线列表
         */
        protected drawText(): number[];
        private addEvent;
        private removeEvent;
        private onTapHandler;
        /**是否合批*/
        isBatch(): boolean;
        enableBatch(val: boolean): void;
        stageTextShow(): void;
        stageTextHide(): void;
    }
    interface TextField {
        addEventListener<Z>(type: "link", listener: (this: Z, e: TextEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener<Z>(type: "focusIn" | "focusOut", listener: (this: Z, e: FocusEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
}
declare module GYLite {
    class GYTextBase extends egret.TextField implements IGYInteractiveDisplay, IUpdate {
        static _tagReg: RegExp;
        /**设置此属性，初始化MyText时将默认使用嵌入式字体*/
        static defualtFont: string;
        static defualtSysFont: string;
        static defaultFormat: any;
        static default_clipXPadding: any;
        static default_clipYPadding: any;
        static textParser: egret.HtmlTextParser;
        static init(): void;
        $textFormat: TextFormat;
        protected _lineWidthArr: Array<number>;
        protected _lineHeightArr: Array<number>;
        $percentWidth: number;
        $percentHeight: number;
        $layoutParent: GYUIComponent;
        protected _layoutMode: LayoutMode;
        $paddingLeft: number;
        $paddingRight: number;
        $paddingTop: number;
        $paddingBottom: number;
        $invalidDisplay: boolean;
        updating: boolean;
        protected _elementsRect: egret.Rectangle;
        protected _toolTip: GYToolTip;
        protected _toolTipOffsetX: number;
        protected _toolTipOffsetY: number;
        protected _toolTipString: string;
        protected _toolTipKeep: boolean;
        protected _followTarget: GYSprite;
        protected _bound: egret.Rectangle;
        protected _elementbound: egret.Rectangle;
        $disposed: boolean;
        protected _graphics: GYGraphics;
        protected _htmlStr: string;
        protected _textStr: string;
        /**输入模式下，文本y轴偏移*/ inputOffsetY: number;
        /**是否以矩形范围也算入碰撞测试*/ rectHit: boolean;
        /**鼠标是否完全穿透，即不参与碰撞检测*/ mouseThrough: boolean;
        /**防销毁锁定标志，为true则不会被dispose销毁，除非参数forceDispose为true*/ disposeLock: boolean;
        /**是否tip跟随鼠标*/ private _toolTipOnKeep;
        /**是否tip直到鼠标抬起*/ isTipFollow: boolean;
        /**是否使用布局的失效机制*/
        useInvalidDisplay: boolean;
        /**是否不参与布局计算*/ offLayout: boolean;
        /**阴影颜色*/ _shadowColor: number;
        /**阴影偏移X*/ _shadowOffsetX: number;
        /**阴影偏移Y*/ _shadowOffsetY: number;
        /**阴影大小*/ _shadowBlur: number;
        protected _charStylesMap: any;
        protected _batchDrawParam: BatchDrawParam;
        protected _invalidBatch: boolean;
        protected _batch: boolean;
        protected _batchAtlasName: string;
        constructor();
        protected initComponent(): void;
        protected displayChg(): void;
        $setIsTyping(val: boolean): void;
        get mouseX(): number;
        get mouseY(): number;
        /**刷新相对布局*/
        layout(): void;
        /**刷新相对大小*/
        sizeChange(): void;
        addLayout(p: GYUIComponent): void;
        protected layoutChange(e: GYViewEvent): void;
        /**是否百分比布局*/
        isPercentSize(): boolean;
        get layoutParent(): GYUIComponent;
        set left(val: number);
        set top(val: number);
        set right(val: number);
        set bottom(val: number);
        set horizonalCenter(val: number);
        set verticalCenter(val: number);
        get left(): number;
        get top(): number;
        get right(): number;
        get bottom(): number;
        get horizonalCenter(): number;
        get verticalCenter(): number;
        /**获取边界矩形 */
        getAllBounds(t: IGYDisplay): egret.Rectangle;
        /**获取边界矩形 */
        getElementsBounds(t: IGYDisplay): egret.Rectangle;
        set paddingLeft(val: number);
        set paddingRight(val: number);
        set paddingTop(val: number);
        set paddingBottom(val: number);
        get paddingLeft(): number;
        get paddingRight(): number;
        get paddingTop(): number;
        get paddingBottom(): number;
        set x(val: number);
        get x(): number;
        set y(val: number);
        get y(): number;
        set width(val: number);
        set height(val: number);
        get width(): number;
        get height(): number;
        set_width(val: number): void;
        set_height(val: number): void;
        get_width(): number;
        get_height(): number;
        get baseWidth(): number;
        get baseHeight(): number;
        set percentWidth(val: number);
        set percentHeight(val: number);
        set layoutMode(val: LayoutMode);
        /**获取布局容器(因为存在双层容器如GYGroup，用此方法取相对布局容器更准确)*/
        getLayoutContainer(): GYUIComponent;
        get layoutMode(): LayoutMode;
        updateView(): void;
        /**刷新显示*/
        invalidDisplay(): void;
        invalidLayout(): void;
        /**提示文本,可以通过s.toolTip设置自定义的GYToolTip(继承此类重写实现)*/
        set toolTipString(val: string);
        get toolTipString(): string;
        set toolTip(val: GYToolTip);
        /**s.toolTip，继承GYToolTip实现自定义@see GYToolTip*/
        get toolTip(): GYToolTip;
        protected rollOverTip(e?: egret.TouchEvent): void;
        showTip(keep?: boolean, followTarget?: GYSprite): void;
        protected rollOutTip(e?: egret.TouchEvent): void;
        protected mouseOutTip(e?: egret.TouchEvent): void;
        /**tip偏移量X*/
        get toolTipOffsetX(): number;
        set toolTipOffsetX(value: number);
        /**tip偏移量Y*/
        get toolTipOffsetY(): number;
        set toolTipOffsetY(value: number);
        /**是否保留tip直到鼠标抬起*/
        get toolTipKeep(): boolean;
        set toolTipKeep(value: boolean);
        /**tip跟随对象*/
        get followTarget(): GYSprite;
        set followTarget(value: GYSprite);
        /**是否刷新中（内部使用请勿修改）*/
        get textWidth(): number;
        get textHeight(): number;
        /**是否在父级视图范围内(0,0,width,height),可用于做裁切视图时的离屏渲染优化*/
        inParentView(l?: number, r?: number, t?: number, b?: number): boolean;
        /**销毁
         * @param disposeChild 是否连同显示列表上的子级也销毁（文本组件没有子级，忽略此参数）
         * @param removeChild 是否从父级显示列表中移除
         * @param forceDispose 是否强制销毁，为true表示无视disposeLock标志，进行销毁
        */
        dispose(disposeChild?: boolean, removeChild?: boolean, forceDispose?: boolean): void;
        /**是否已经被销毁*/
        get disposed(): boolean;
        protected drawText(): number[];
        clearBatch(): void;
        enableBatch(val: boolean): void;
        /**是否动态合批，请在文本渲染前设定，默认根据父级容器batch，如果父级也没设定，则默认false*/
        isBatch(): boolean;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**合批图像的绘制样式**/
        getBatchDrawParam(): BatchDrawParam;
        setBatchAtlasName(val: string): void;
        /**合批图集名称，不存在找父级容器的，如果都不存在，默认AtlasRender.defaultAtlasName**/
        getBatchAtlasName(): string;
        set underline(val: any);
        get underline(): any;
        setShadow(shadowBlur?: number, shadowColor?: number, shadowOffsetX?: number, shadowOffsetY?: number): void;
        protected setHTML(val: string): void;
        protected setText(val: string): void;
        invalidBatch(): void;
        validBatch(): void;
        /**背景填充
         * @param lines [坐标x,坐标y,宽度w,颜色color]
        */
        protected fillBackground(lines?: number[]): void;
        getLineWidth(ind?: number): number;
        getLineHeight(ind?: number): number;
        $updateRenderNode(): void;
        $getLinesArr2(): egret.ILineElement[];
    }
}
/**
@author 迷途小羔羊
2012.11.18
*/
declare module GYLite {
    /**羔羊组件的基础文本组件*/
    class GYText extends GYTextBase {
        /**-1 字号自适应, 由于白鹭底层设置宽度设置为0则不计算文本尺寸直接返回0，所以此处若设置为0（宽度等于padding + textWidth,textWidth为计算前为0）会导致文本底层返回一直为0，所以为保证底层对文本进行宽度计算，此处应该大于0*/
        static defualtPadding: number;
        protected _autoHeight: boolean;
        protected _autoWidth: boolean;
        /**上下边距和,当为-1时使用GYText.defualtPadding*/
        protected _padding: number;
        protected _invalidFormat: boolean;
        protected _minWidth: number;
        protected _minHeight: number;
        protected _maxWidth: number;
        protected _maxHeight: number;
        /**是否使用文本测量的失效机制*/
        useInvalidText: boolean;
        clipGroup: GYGroup;
        /**是否不参与布局计算*/ offLayout: boolean;
        constructor(mul?: boolean);
        protected initComponent(): void;
        protected textChange(e: egret.Event): void;
        /**刷新文字格式,调用此函数将立即刷新文本格式，否则将在渲染前刷新，建议需要测量时请先调用此函数刷新文本*/
        validFormat(): void;
        updateView(): void;
        set bold(b: any);
        get bold(): any;
        set size(val: any);
        get size(): any;
        set color(val: any);
        get color(): any;
        set letterSpacing(val: any);
        get letterSpacing(): any;
        set indent(val: any);
        get indent(): any;
        set italic(val: any);
        get italic(): any;
        set font(val: any);
        get font(): any;
        set leading(val: any);
        get leading(): any;
        set align(val: any);
        get align(): any;
        get contentWidth(): number;
        get contentHeight(): number;
        set autoHeight(val: boolean);
        get autoHeight(): boolean;
        set autoWidth(val: boolean);
        get autoWidth(): boolean;
        /**是否描边*/
        set glow(val: boolean);
        set text(str: string);
        setText(val: string): void;
        get text(): string;
        set htmlText(str: string);
        protected setHTML(val: string): void;
        get htmlText(): string;
        widthCheck(temp: number): number;
        heightCheck(temp: number): number;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get padding(): number;
        set padding(val: number);
        set textFormat(val: TextFormat);
        get textFormat(): TextFormat;
        /**格式刷新*/
        invalidFormat(): void;
        stageTextShow(): void;
        stageTextHide(): void;
        get minWidth(): number;
        set minWidth(value: number);
        get minHeight(): number;
        set minHeight(value: number);
        get maxWidth(): number;
        set maxWidth(value: number);
        get maxHeight(): number;
        set maxHeight(value: number);
        /**替换指定索引上的文本(仅替换文本，不包括下划线)*/
        replaceTextAt(index: number, text: string, measure: boolean, format?: any): void;
    }
}
declare module GYLite {
    /**<code>GYShowInput</code>是一个全局公用的输入文本，覆盖在顶层作为临时输入*/
    class GYShowInput extends GYText {
        private static _instance;
        /**显示输入文本
         * @param txt 设置文本的对象
         * @param pr 显示的层级
         * */
        static show(txt: GYText, pr: GYSprite): GYShowInput;
        private _txtSource;
        /**@param mul 是否多行*/
        constructor(mul?: boolean);
        /**设置绑定的文本，输入结束后自动设置文本内容*/
        inputSet(txt: GYText): void;
        get inputText(): string;
        private deactive;
        layout(): void;
    }
}
declare module GYLite {
    class GYSkinContainer extends GYUIComponent implements IGYSkinContainer {
        protected _skin: any;
        constructor();
        protected initComponent(): void;
        set skin(val: any);
        protected themeChange(e: GYThemeEvent): void;
        get skin(): any;
        protected skinChange(oldSkin: any, newSkin: any): void;
        protected getThemeSkin(): IGYSkin;
    }
}
declare module GYLite {
    /**下拉菜单, 可以使用ISkinTheme的GetMenu快速构建
     * */
    class GYMenu extends GYSkinContainer {
        static default_autoSize: boolean;
        static default_autoClose: boolean;
        protected _listV: GYListV;
        protected _filterArr: Array<any>;
        protected _sourceArr: Array<any>;
        protected _autoSize: boolean;
        protected _autoClose: boolean;
        protected _filterFunc: Function;
        /***
         * @param skin 参见MenuSkin
         * @param size 菜单高度，如果输入负数，则为菜单项目数目，此时菜单高度s.height和项高度boxH要自己设置一下
         * @param getItemFunc():IItemRender 列表项的item对象返回函数
         * @param getThisObject getItemFunc的this
         * */
        constructor(skin?: any, size?: number, getItemFunc?: Function, getThisObject?: any, setItemFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        /**设置数据源*/
        set dataProvider(val: Array<any>);
        get dataProvider(): Array<any>;
        /**纵向滚动条*/
        get vScroller(): GYScrollBarV;
        /**菜单列表*/
        get listV(): GYListV;
        set autoSize(val: boolean);
        /**是否自适应高度*/
        get autoSize(): boolean;
        /**滚动条 0自动 1显示 2不显示*/
        set scrollerPolicy(val: number);
        get scrollerPolicy(): number;
        /**设置过滤函数s.setFilterFunc,此函数有一个参数Array源数组，一个参数Array过滤数组、一个参数result输入框的内容，过滤数组放入符合的选项
         * val(Array;Array;String)
         * */
        setFilterFunc(val: Function): void;
        /**使用过滤函数s.filterFunc过滤无用的选项
         * @param 过滤的字符串参数
         * */
        userFilter(result: string): Array<any>;
        /**重写此方法，提供菜单项*/
        protected getMenuItem(): IItemRender;
        /**重写此方法，设置菜单项数据*/
        protected setMenuItem(item: IItemRender, data: any): void;
        /**获取主题皮肤，自定义皮肤请实现IMenuSkin接口*/
        protected getThemeSkin(): IGYSkin;
        /**外部点击自动关闭*/
        get autoClose(): boolean;
        set autoClose(value: boolean);
        private addToStage;
        protected outsideRelease(e: GYTouchEvent): void;
    }
}
/**
 @author 迷途小羔羊
 2014.12.5
 */
declare module GYLite {
    class ButtonBase extends GYSkinContainer {
        constructor(skin?: any);
        protected initComponent(): void;
        set label(val: string);
        /**当s.label被赋值的时候自动产生Mytext文本(在此之前不存在s.labelDisplay)，在s.label再赋值为null时，文本不会被清除，暂时从显示列表移除*/
        get label(): string;
        /**获取文本对象*/
        get labelDisplay(): GYText;
        set width(val: number);
        set height(val: number);
        get width(): number;
        get height(): number;
        /**按钮状态改变
         * 状态请参考ButtonBase内部常量定义
         * */
        stateChange(): void;
        /**s.skin皮肤Class类型，自定义皮肤请实现IButtonSkin接口，传入实例将自动clone副本(不包括s.labelDisplay) */
        set skin(val: any);
        get skin(): any;
        /**获取主题皮肤，自定义皮肤请实现IButtonSkin接口*/
        protected getThemeSkin(): IGYSkin;
        updateView(): void;
        /**刷新状态*/
        invalidState(): void;
        protected _toggle: boolean;
        protected _selected: boolean;
        protected _enabled: boolean;
        protected _state: number;
        protected _clickFunc: Function;
        protected _clickThisObject: any;
        protected _stsChange: boolean;
        /**抬起*/ static STATE_UP: number;
        /**经过*/ static STATE_OVER: number;
        /**按下*/ static STATE_DOWN: number;
        /**不可用*/ static STATE_DISABLE: number;
        /**选中时经过*/ static STATE_SELECTOVER: number;
        /**选中时按下*/ static STATE_SELECTDOWN: number;
        /**选中时*/ static STATE_SELECT: number;
        /**选中时不可用*/ static STATE_SELECTDISABLE: number;
    }
}
/**
@author 迷途小羔羊
2012.11.18
*/
declare module GYLite {
    class GYButton extends ButtonBase {
        private _longDownTime;
        private _longDownInterval;
        private _continueDownTime;
        private _continueDownInterval;
        private _continueParam;
        constructor(skin?: any);
        protected initComponent(): void;
        private addListener;
        private removeListener;
        protected rlOver(e: egret.TouchEvent): void;
        protected rlOut(e: egret.TouchEvent): void;
        protected mDown(e: egret.TouchEvent): void;
        protected mUp(e: egret.TouchEvent): void;
        protected releaseOutside(e: GYTouchEvent): void;
        private longDownLoop;
        private clearLongDown;
        private continueDownLoop;
        private clearContinueDown;
        protected mClk(e: egret.TouchEvent): void;
        /**点击按钮
         * @param func(e:egret.TouchEvent)
         * */
        getOnClick(): Function;
        setOnClick(func: Function, thisObject: any): void;
        set enabled(val: boolean);
        /**是否可点 */
        get enabled(): boolean;
        set toggle(tog: boolean);
        /**是否自动切换状态*/
        get toggle(): boolean;
        set selected(sel: boolean);
        /**是否选中*/
        get selected(): boolean;
        /**设置按钮状态*/
        set state(st: number);
        get state(): number;
        /**长按按钮时，经过多长时间触发长按事件(毫秒)*/
        get longDownInterval(): number;
        set longDownInterval(value: number);
    }
}
/**
 @author 迷途小羔羊
 2015.3.22
 */
declare module GYLite {
    class GYLinkButton extends GYButton {
        constructor(skin?: any);
        protected getThemeSkin(): IGYSkin;
    }
}
declare module GYLite {
    class MenuItem extends GYLinkButton implements IItemRender {
        protected _data: any;
        protected _owner: IList;
        protected _itemIndex: number;
        constructor(skin?: any);
        /**设置数据*/
        setData(val: any): void;
        /**获得数据*/
        getData(): any;
        /**提取数据*/
        toString(): string;
        get owner(): IList;
        set owner(val: IList);
        get itemIndex(): number;
        set itemIndex(value: number);
        get col(): number;
        set col(value: number);
        get row(): number;
        set row(value: number);
    }
}
declare module GYLite {
    class GYTitleWindow extends GYSkinContainer {
        private _canDrag;
        private _dragRange;
        private _tempX;
        private _tempY;
        constructor(s?: any);
        protected initComponent(): void;
        private dragDown;
        private dragUp;
        private dragLoop;
        /**自定义皮肤请实现IWindowSkin接口 */
        protected getThemeSkin(): IGYSkin;
        protected oper(e: egret.TouchEvent): void;
        show(pr: IGYContainer): void;
        hide(): void;
        get closeBtn(): GYButton;
        /**窗体是否可拖动*/
        get canDrag(): boolean;
        set canDrag(value: boolean);
        setBackgound(b: egret.BitmapData): void;
        get backgoundImage(): GYScaleSprite;
        setIcon(val: egret.Texture): void;
        setTitle(val: string): void;
        get icon(): GYImage;
        get title(): GYText;
        /**窗口拖动到s.y方向范围*/
        get dragRange(): number;
        set dragRange(value: number);
    }
}
/**
 @author 迷途小羔羊
 2015.6.5
 */
declare module GYLite {
    /**单选按钮*/
    class GYRadioButton extends GYButton {
        private _radioGroup;
        constructor(skin?: any);
        /**获取主题皮肤，自定义皮肤请实现IRadioButtonSkin接口*/
        protected getThemeSkin(): IGYSkin;
        protected mClk(e: egret.TouchEvent): void;
        set gap(val: number);
        /**文本与复选框的间隙*/
        get gap(): number;
        set radioGroup(val: GYRadioGroup);
        /**单选按钮组，同组互斥*/
        get radioGroup(): GYRadioGroup;
    }
}
/**
 @author 迷途小羔羊
 2015.6.5
 */
declare module GYLite {
    /**单选按钮组*/
    class GYRadioGroup {
        private _selectedButton;
        constructor();
        /**设置此属性选中组内单选按钮*/
        set selectedButton(val: GYRadioButton);
        get selectedButton(): GYRadioButton;
    }
}
declare module GYLite {
    class GYGroup extends GYUIComponent {
        protected _scrollPadLeft: number;
        protected _scrollPadRight: number;
        protected _scrollPadTop: number;
        protected _scrollPadBottom: number;
        protected _clipAndEnableScrolling: boolean;
        protected _clipRect: egret.Rectangle;
        $clipX: number;
        $clipY: number;
        protected _canDrag: boolean;
        protected _verticalDrag: boolean;
        protected _horizonDrag: boolean;
        protected _scroller: GYScroller;
        protected _easeGapY: boolean;
        protected _easeGapX: boolean;
        protected _easeXFix: number;
        protected _easeYFix: number;
        protected _easeSpeedValue: number;
        protected _clipChange: boolean;
        protected _tweenX: GYTween;
        protected _tweenY: GYTween;
        protected _touchId: number;
        /**产生缓动的速度*/ easeValue: number;
        /**拖动敏感度*/ dragValue: number;
        /**边界拖拽系数*/ protected _dragEaseValue: number;
        /**拖拽步长最大值*/ protected _dragEaseMax: number;
        /**缓动越界最大值*/ protected _easeMoveMax: number;
        /**触发缓动的时间阈值*/ protected _easeTriggerTime: number;
        /**弹性恢复时间*/ protected _easeTime: number;
        protected _innerSprite: InnerSprite;
        protected _endPointer: GYSprite;
        protected _outSideSp: InnerSprite;
        protected _indexArray: Array<IGYDisplay>;
        protected _outSideOptimize: boolean;
        protected _lastXDragTime: number;
        protected _lastYDragTime: number;
        protected _moveXTime: number;
        protected _moveYTime: number;
        protected _scrollSpeedX: number;
        protected _scrollSpeedY: number;
        protected _limitXMin: number;
        protected _limitXMax: number;
        protected _limitYMin: number;
        protected _limitYMax: number;
        protected _isDragging: boolean;
        /**是否拖拽时禁止滚轮，默认true*/ dragForbiddenWheel: boolean;
        constructor();
        /**本容器添加，非内层容器*/
        baseAdd(child: IGYDisplay): void;
        /**本容器添加，非内层容器*/
        baseRemove(child: IGYDisplay): void;
        /**@inheritDoc */
        getElementAt(index: number): IGYDisplay;
        /**@inheritDoc */
        getElementIndex(child: IGYDisplay): number;
        /**@inheritDoc*/
        delElement(child: IGYDisplay): void;
        /**@inheritDoc*/
        addElement(disObj: IGYDisplay): IGYDisplay;
        /**@inheritDoc*/
        addElementAt(disObj: IGYDisplay, index: number): IGYDisplay;
        /**@inheritDoc*/
        removeElement(disObj: IGYDisplay): IGYDisplay;
        /**@inheritDoc*/
        removeElementAt(index: number): IGYDisplay;
        /**@inheritDoc*/
        removeAllElement(): void;
        /**@inheritDoc*/
        setElementIndex(child: IGYDisplay, index: number): void;
        /**@inheritDoc*/
        swapElementIndex(child1: any, child2: any): void;
        get numElement(): number;
        getElementList(): Array<IGYDisplay>;
        /**@inheritDoc*/
        updateView(): void;
        /**刷新裁剪*/
        invalidClip(): void;
        set clipAndEnableScrolling(val: boolean);
        /**是否允许裁切边界进行滚动*/
        get clipAndEnableScrolling(): boolean;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        set group_width(val: number);
        get group_width(): number;
        set group_height(val: number);
        get group_height(): number;
        validClip(): void;
        /**请使用s.clipAndEnableScrolling以实现*/
        get scrollRect(): egret.Rectangle;
        set scrollRect(rect: egret.Rectangle);
        set clipX(val: number);
        set clipY(val: number);
        /**s.clipAndEnableScrolling为true时有效，s.scrollRect滚动的s.x坐标*/
        get clipX(): number;
        /**s.clipAndEnableScrolling为true时有效，s.scrollRect滚动的s.y坐标*/
        get clipY(): number;
        get scroller(): GYScroller;
        set scroller(val: GYScroller);
        /**能否拖动,仅在s.clipAndEnableScrolling为true时有效* */
        get canDrag(): boolean;
        set canDrag(val: boolean);
        /**是否允许纵向拖动，当s.canDrag为true时才有效*/
        get verticalDrag(): boolean;
        set verticalDrag(val: boolean);
        /**是否允许横向拖动，当s.canDrag为true时才有效*/
        get horizonDrag(): boolean;
        set horizonDrag(val: boolean);
        protected downGroup(e: egret.TouchEvent): void;
        protected upGroup(e?: egret.TouchEvent): void;
        protected globalDragCall(e: GYEvent): void;
        protected groupDrag(): void;
        clearGlobalDrag(): void;
        protected groupDragStop(): void;
        protected touchMove(e: egret.TouchEvent): void;
        protected tempY: number;
        protected tempX: number;
        protected easeSpeedX: number;
        protected easeSpeedY: number;
        protected dragLoop(t: number): void;
        private dragEnd_Horizonal;
        private dragEnd_Vertical;
        /**缓动到某Y坐标
         * @param val 坐标值Y
         * @param time 缓动时间
        */
        clipYEaseTo(val: number, time?: number): void;
        private startYAni;
        private easeYComp;
        /**缓动到某X坐标*/
        clipXEaseTo(val: number, time?: number): void;
        private startXAni;
        private easeXComp;
        /**弹性恢复停止值(上下占位像素)，大于等于0*/
        get easeYFix(): number;
        set easeYFix(val: number);
        /**弹性恢复停止值(左右占位像素)，大于等于0*/
        get easeXFix(): number;
        set easeXFix(val: number);
        /**超出闪现边界范围值，上边界为负数，下边界为正数*/
        get easeOutY(): number;
        /**超出左右边界范围值，左边界为负数，右边界为正数*/
        get easeOutX(): number;
        set easeGapY(val: boolean);
        set easeGapX(val: boolean);
        /**是否超出底边界弹性恢复*/
        get easeGapY(): boolean;
        /**是否超出底边界弹性恢复*/
        get easeGapX(): boolean;
        protected _oldMouseChildren: boolean;
        protected _dragLock: boolean;
        /**拖动group时锁上内容不响应鼠标事件*/
        protected set dragLock(val: boolean);
        protected get dragLock(): boolean;
        /**css层级显示*/
        invalidZIndex(): void;
        validZIndex(): void;
        protected updateContentSize(child: IGYDisplay): void;
        set outSideOptimize(val: boolean);
        get outSideOptimize(): boolean;
        /**检测屏内外元素
         * @param checkChild 需要进行检测的显示对象
         * @param updateZIndex 是否更新层级
        */
        checkOutSize(checkChild?: IGYDisplay, updateZIndex?: boolean): void;
        /**覆盖getAllBounds,以便得到真实内容的宽高*/
        getAllBounds(t: IGYDisplay): egret.Rectangle;
        get scrollPadLeft(): number;
        set scrollPadLeft(val: number);
        get scrollPadRight(): number;
        set scrollPadRight(val: number);
        get scrollPadTop(): number;
        set scrollPadTop(val: number);
        get scrollPadBottom(): number;
        set scrollPadBottom(val: number);
        set limitXMin(val: number);
        get limitXMin(): number;
        /**限制滚动x方向最大值，默认NaN，不限制*/
        set limitXMax(val: number);
        /**限制滚动x方向最小值，默认NaN，不限制*/
        get limitXMax(): number;
        set limitYMin(val: number);
        /**限制滚动y方向最小值，默认NaN，不限制*/
        get limitYMin(): number;
        set limitYMax(val: number);
        /**限制滚动y方向最大值，默认NaN，不限制*/
        get limitYMax(): number;
        /**停止拖动响应*/
        stopDrag(): void;
        /**是否拖拽中*/
        get isDragging(): boolean;
        /**产生缓动的速度*/ static default_easeValue: number;
        /**拖动敏感度*/ static default_dragValue: number;
        /**加速度系数1/2a*/ static default_easeSpeedValue: number;
        /**边界拖拽系数*/ static default_dragEaseValue: number;
        /**拖拽步长最大值*/ static default_dragEaseMax: number;
        /**缓动越界最大值*/ static default_easeMoveMax: number;
        /**触发缓动的时间阈值*/ static default_easeTriggerTime: number;
        /**弹性恢复时间*/ static default_easeTime: number;
    }
    class InnerSprite extends GYUIComponent {
        private _virtualParent;
        constructor(pr: GYLite.GYGroup);
        get parent(): GYLite.GYGroup;
    }
}
declare module GYLite {
    class GYScrollGroup extends GYUIComponent {
        scrollerViewPort: GYGroup;
        scroller: GYScroller;
        constructor();
        protected initComponent(): void;
        /**@inheritDoc */
        getElementAt(index: number): IGYDisplay;
        /**@inheritDoc */
        getElementIndex(child: IGYDisplay): number;
        /**@inheritDoc*/
        delElement(child: IGYDisplay): void;
        /**@inheritDoc*/
        addElement(disObj: IGYDisplay): IGYDisplay;
        /**@inheritDoc*/
        addElementAt(disObj: IGYDisplay, index?: number): IGYDisplay;
        /**@inheritDoc*/
        removeElement(disObj: IGYDisplay): IGYDisplay;
        /**@inheritDoc*/
        removeElementAt(index?: number): IGYDisplay;
        /**@inheritDoc*/
        setElementIndex(child: IGYDisplay, index: number): void;
        /**@inheritDoc*/
        swapElementIndex(child1: any, child2: any): void;
        get numElement(): number;
        /**@inheritDoc*/
        set width(val: number);
        get width(): number;
        /**@inheritDoc*/
        set height(val: number);
        get height(): number;
    }
}
declare module GYLite {
    class GridData {
        width: number;
        height: number;
        posX: number;
        posY: number;
        index: number;
        isSet: boolean;
    }
}
declare module GYLite {
    class GYGridBase extends GYGroup implements IList {
        protected _innerHeight: number;
        protected _innerWidth: number;
        protected _cols: number;
        protected _rows: number;
        protected _paddingR: number;
        protected _paddingB: number;
        protected _dataProvider: Array<any>;
        protected _grids: Array<any>;
        protected _boxW: number;
        protected _boxH: number;
        protected createGrid: Function;
        protected setGridData: Function;
        protected _lastLine: number;
        protected _lastEndLine: number;
        protected _max: number;
        protected _scrollerPolicy: number;
        protected _gridUpdate: boolean;
        protected _dataUpdate: boolean;
        protected _boxNumUpdate: boolean;
        protected _boxNumUpdateReset: boolean;
        protected _canSelectNum: number;
        protected _selectList: any[];
        protected _selectedData: any;
        protected _selectIndex: number;
        protected _keepSelected: boolean;
        protected _dataToItemDict: Dictionary;
        protected _nextData: any;
        protected _selectMode: number;
        protected _wheelScroll: boolean;
        protected _wheelStep: number;
        protected _stopSelTarget: any;
        private _selectTime;
        private _selectInterval;
        protected _dragSelect: boolean;
        protected _mouseSelect: boolean;
        protected _addSelect: boolean;
        protected _getThisObject: any;
        protected _setThisObject: any;
        protected _virtual_layout: boolean;
        protected _scrollPosLimit: number;
        protected _scrollToPos: number;
        protected _overlying: boolean;
        /**速度系数，乘以滑动的速度*/ speedParam: number;
        /**区间限制的时候，恢复到区间位置的滚动花费时间*/ scrollNextTime: number;
        /**Grid组件基类，请继承自定义其逻辑，或者使用GYGrid GYGridV GYGridH
         * @param sizeW Grid宽度 设定后无法更，当为负数的时候则表示为列数cols，此时则需要另外设置Grid宽和项宽（s.boxW）
         * @param sizeH Grid高度 设定后无法更，当为负数的时候则表示为行数rows，此时则需要另外设置Grid高和项高（s.boxH）
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(sizeW: number, sizeH: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        protected getGrid(): IItemRender;
        protected setGrid(grid: IItemRender, obj: any): void;
        protected selectCell(e: egret.TouchEvent): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        /**跳转至某索引项*/
        scrollToIndex(val: number): void;
        /**跳转到row行col列(位置在末尾)*/
        scrollToEndIndex(val: number): void;
        protected selectIn(e: egret.TouchEvent): void;
        protected selectOut(e: egret.TouchEvent): void;
        private selectLoop;
        dataIsSelected(d: any): boolean;
        protected releaseOutSide(e: egret.TouchEvent): void;
        set boxW(val: number);
        set boxH(val: number);
        set paddingR(val: number);
        set paddingB(val: number);
        /**格子宽度*/
        get boxW(): number;
        /**格子高度*/
        get boxH(): number;
        /**格子右边间隙*/
        get paddingR(): number;
        /**格子底边间隙*/
        get paddingB(): number;
        set dataProvider(val: Array<any>);
        /**数据源*/
        get dataProvider(): Array<any>;
        set rows(val: number);
        get rows(): number;
        set cols(val: number);
        get cols(): number;
        set virtual_layout(val: boolean);
        get virtual_layout(): boolean;
        set canSelectNum(val: number);
        /**允许选择多少项(默认0，不能选择)*/
        get canSelectNum(): number;
        /**选中项的数据列表(当s.canSelectNum大于1时，将会提供此选择列表)*/
        get selectList(): any[];
        set selectList(val: any[]);
        /**选择的数据索引*/
        get selectedIndex(): number;
        set selectedIndex(val: number);
        set selectedItem(val: IItemRender);
        /**当前选择的ItemRender*/
        get selectedItem(): IItemRender;
        set selectedData(d: any);
        /**当前选择的数据，选择的数据不一定与选择的项相对应，由于内部使用的是渲染项循环滚动以节省资源，所以滚动之后ItemRender的数据不一定就是选择的数据*/
        get selectedData(): any;
        /**数据失效*/
        invalidData(): void;
        /**格子数量失效*/
        invalidBoxNum(): void;
        /**网格失效*/
        invalidGrids(): void;
        /**刷新格子布局*/
        updateGrid(): void;
        /**刷新数据*/
        updateData(): void;
        /**移除索引位置上的数据项（刷新）*/
        removeItemAt(ind: number): void;
        /**移除数据项（刷新）*/
        removeItem(d: any): void;
        /**添加索引位置数据项（刷新）*/
        addItemAt(d: any, ind: number): void;
        /**添加数据项（刷新）*/
        addItem(d: any): void;
        /**刷新数据项*/
        updateItem(d: any): void;
        /**刷新格子数*/
        protected boxNumChange(update?: boolean): void;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        /**@inheritDoc*/
        updateView(): void;
        /**拖选的选择模式，0为行列矩阵的拖选，1逐行或者逐列的拖选，可重写s.selectLine方法自定义拖选规则*/
        get selectMode(): number;
        set selectMode(val: number);
        /**拖选时的滚动时间间隔(毫秒)*/
        get selectInterval(): number;
        set selectInterval(val: number);
        /**是否启用拖选功能*/
        get dragSelect(): boolean;
        set dragSelect(value: boolean);
        get stopSelTarget(): any;
        set stopSelTarget(value: any);
        /**是否保留选择的数据项*/
        get keepSelected(): boolean;
        set keepSelected(value: boolean);
        get innerWidth(): number;
        get innerHeight(): number;
        /**连选时末尾选中的数据*/
        get nextData(): any;
        get wheelStep(): number;
        set wheelStep(value: number);
        /**是否启用滚轮*/
        get wheelScroll(): boolean;
        set wheelScroll(value: boolean);
        protected wheelRoll(e: egret.TouchEvent): void;
        get dataToItemDict(): Dictionary;
        /**滚动区间限制,限制滚动停止的位置以相等的距离*/
        set scrollPosLimit(val: number);
        get scrollPosLimit(): number;
        /**滚动条 0自动 1显示 2不显示*/
        set scrollerPolicy(val: number);
        get scrollerPolicy(): number;
        /**滚动到下一项
         * @return 返回滚动的目标位置
        */
        scrollToNextItem(): number;
        /**滚动到上一项
         * @return 返回滚动的目标位置
        */
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
        /**scrollToNextItem、scrollToPreItem是否叠加滚动，默认true*/
        get overlying(): boolean;
        set overlying(val: boolean);
        /**拖选响应毫秒(默认值)*/ static default_selectInterval: number;
        /**滚轮步长(默认值)*/ static default_wheelStep: number;
        /**是否允许滚轮(默认值)*/ static default_wheelScroll: boolean;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    /**行列宽高固定的Grid组件，行列数量随组件宽高自适应，若单纯纵向建议使用GYGridV，单纯横向建议使用GYGridH*/
    class GYGrid extends GYGridBase {
        protected _vScroller: GYScrollBarV;
        protected _hScroller: GYScrollBarH;
        protected _lastLineH: number;
        protected _lastEndLineH: number;
        protected _hScrollerPolicy: number;
        protected _horizonalMax: number;
        protected _contentGrp: GYGroup;
        /**行列宽高固定的Grid组件，行列数量随组件宽高自适应，若单列建议使用GYGridV，单行建议使用GYGridH
         * @param cols 无效
         * @param rows 无效
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(cols: number, rows: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        set selectedIndex(val: number);
        /**选择row行col列指定项*/
        selectedPos(row: number, col: number): void;
        /**跳转到row行col列*/
        scrollToPos(row: number, col: number): void;
        /**跳转到row行col列(位置在末尾)*/
        scrollToEndPos(row: number, col: number): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        /**纵向滚动条*/
        get vScroller(): GYScrollBarV;
        /**横向滚动条*/
        get hScroller(): GYScrollBarH;
        /**@inheritDoc*/
        set dataProvider(val: Array<any>);
        get dataProvider(): Array<any>;
        protected vScrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        protected hScrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        /**@inheritDoc*/
        updateItems(): void;
        /**@inheritDoc*/
        updateGrid(): void;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        set canSelectNum(val: number);
        get canSelectNum(): number;
        set dragSelect(value: boolean);
        get dragSelect(): boolean;
        protected wheelRoll(e: any): void;
        /**水平滚动条 0自动 1显示 2不显示*/
        get hScrollerPolicy(): number;
        set hScrollerPolicy(val: number);
        /**垂直滚动条 0自动 1显示 2不显示*/
        get vScrollerPolicy(): number;
        set vScrollerPolicy(val: number);
        protected downGroup(e: egret.TouchEvent): void;
        protected dragLoop(t: number): void;
        protected groupDrag(): void;
        protected groupDragStop(): void;
    }
}
/**
 @author 迷途小羔羊
 2015.11.20
 */
declare module GYLite {
    class GYDataGrid extends GYGrid {
        protected _rowsData: GridData[];
        protected _colsData: GridData[];
        protected _maxGridWidth: number;
        protected _maxGridHeight: number;
        protected _rowsDataUpdate: boolean;
        protected _colsDataUpdate: boolean;
        protected _oldRows: number;
        protected _oldCols: number;
        /**行列宽高可变的Grid组件，行列数量随组件宽高自适应，若行列宽高固定，建议使用GYGrid
         * @param cols 初始化列数据 0初始化 非0 则需要外部提供s.rowsData的行数据
         * @param rows 初始化行数据 0初始化 非0 则需要外部提供s.colsData的列数据
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(cols: number, rows: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        /**@inheritDoc*/
        scrollToPos(row: number, col: number): void;
        /**@inheritDoc*/
        scrollToEndPos(row: number, col: number): void;
        /**每行的格子信息*/
        get rowsData(): GridData[];
        /**每列格子信息*/
        get colsData(): GridData[];
        protected getRowGridData(val: number): GridData;
        protected getColGridData(val: number): GridData;
        /**@inheritDoc*/
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        protected vScrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        protected hScrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        protected unshiftRows(): void;
        protected addRows(): void;
        protected addChildRows(arr: Array<any>): void;
        protected removeChildRows(arr: Array<any>): void;
        /**设置某列宽度
         * @param ind 列索引 val 宽度值
         * */
        setGridWidth(ind: number, val: number): void;
        /**设置某行高度
         * @param ind 行索引 val 高度值
         * */
        setGridHeight(ind: number, val: number): void;
        protected getNowRow(val: number): GridData;
        protected getNowCol(val: number): GridData;
        /**刷新网格行数据*/
        invalidRowsData(): void;
        /**刷新网格列数据*/
        invalidColsData(): void;
        protected updateColsData(): void;
        protected updateRowsData(): void;
        updateView(): void;
        static default_boxH: number;
        static default_boxW: number;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    class GYListBase extends GYGroup implements IList {
        protected _innerHeight: number;
        protected _innerWidth: number;
        protected _boxs: number;
        protected _padding: number;
        protected _dataProvider: Array<any>;
        protected _grids: Array<any>;
        protected _boxW: number;
        protected _boxH: number;
        protected createGrid: Function;
        protected setGridData: Function;
        protected _lastBox: number;
        protected _max: number;
        protected _scrollerPolicy: number;
        protected _selectedData: any;
        protected _dataUpate: boolean;
        protected _gridUpdate: boolean;
        protected _gridSizeChange: boolean;
        protected _gridDataUpdate: boolean;
        protected _canSelectNum: number;
        protected _boxNumUpdate: boolean;
        protected _boxNumUpdateReset: boolean;
        protected _selectList: any[];
        protected _dataToItemDict: Dictionary;
        protected _keepSelected: boolean;
        protected _nextData: any;
        protected _selectIndex: number;
        protected _wheelScroll: boolean;
        protected _wheelStep: number;
        protected _stopSelTarget: any;
        private _selectTime;
        private _selectInterval;
        private _dragSelect;
        protected _mouseSelect: boolean;
        private _addSelect;
        protected _setThisObject: any;
        protected _getThisObject: any;
        protected _dragPreEnabled: boolean;
        protected _dragNextEnabled: boolean;
        protected _virtual_layout: boolean;
        protected _scrollPosLimit: number;
        protected _scrollToPos: number;
        protected _overlying: boolean;
        /**速度系数，乘以滑动的速度*/ speedParam: number;
        /**区间限制的时候，恢复到区间位置的滚动花费时间*/ scrollNextTime: number;
        /**List组件的基类 继承后自定义其逻辑或者直接使用GYListV GYListH GYDataListV GYDataListH
         * @param size list尺寸（纵向ListV为高度，横向ListH则为宽度）设定后无法更，当为负数的时候则表示为boxCount，此时则需要另外设置list宽高和项宽高（s.boxH和s.boxW）
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(size: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        protected getGrid(): IItemRender;
        protected setGrid(grid: IItemRender, obj: any): void;
        protected selectCell(e: egret.TouchEvent): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        private selectIn;
        private selectOut;
        private selectLoop;
        /**数据是否被选中*/
        dataIsSelected(d: any): boolean;
        /**跳转至某索引项*/
        scrollToIndex(val: number): void;
        /**跳转至某索引项(位置在末尾)*/
        scrollToEndIndex(val: number): void;
        private releaseOutSide;
        set virtual_layout(val: boolean);
        get virtual_layout(): boolean;
        set canSelectNum(val: number);
        /**同时能选择的数量*/
        get canSelectNum(): number;
        /**多选时的选择列表*/
        get selectList(): any[];
        set selectList(val: any[]);
        /**选择的数据索引*/
        get selectedIndex(): number;
        set selectedIndex(val: number);
        set selectedItem(val: IItemRender);
        /**当前选中的ItemRender*/
        get selectedItem(): IItemRender;
        getItemByData(d: any): IItemRender;
        set selectedData(d: any);
        get selectedData(): any;
        set boxW(val: number);
        set boxH(val: number);
        /**格子宽度(ItemRender不等宽高的列表时，仅为默认值)*/
        get boxW(): number;
        /**格子高度(ItemRender不等宽高的列表时，仅为默认值)*/
        get boxH(): number;
        set padding(val: number);
        /**间距*/
        get padding(): number;
        set boxs(val: number);
        get boxs(): number;
        set dataProvider(val: Array<any>);
        /**数据源*/
        get dataProvider(): Array<any>;
        /**数据失效*/
        invalidData(): void;
        /**格子数量失效*/
        invalidBoxNum(): void;
        /**网格布局失效*/
        invalidGrids(): void;
        /**网格数据失效*/
        invalidGridData(): void;
        updateView(): void;
        /**刷新格子布局*/
        updateGrid(): void;
        /**刷新数据*/
        updateData(): void;
        /**刷新格子数据*/
        updateGridData(): void;
        /**移除索引位置上的数据项（刷新）*/
        removeItemAt(ind: number): void;
        /**移除数据项（刷新）*/
        removeItem(d: any): void;
        /**添加索引位置数据项（刷新）*/
        addItemAt(d: any, ind: number): void;
        /**添加数据项（刷新）*/
        addItem(d: any): void;
        /**刷新数据项*/
        updateItem(d: any): void;
        /**刷新格子数*/
        protected boxNumChange(update?: boolean): void;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        /**拖选时的滚动时间间隔(毫秒)*/
        get selectInterval(): number;
        set selectInterval(value: number);
        /**是否启用拖选功能*/
        get dragSelect(): boolean;
        set dragSelect(value: boolean);
        /**当次选择排除的点击对象，如ItemRender内部有按钮，避免点击当成选择，可临时设置此属性，点击后将被设置为null*/
        get stopSelTarget(): any;
        set stopSelTarget(value: any);
        /**是否保留选择的数据项*/
        get keepSelected(): boolean;
        set keepSelected(value: boolean);
        get nextData(): any;
        /**是否启用滚轮*/
        get wheelScroll(): boolean;
        set wheelScroll(value: boolean);
        protected wheelRoll(e: egret.TouchEvent): void;
        get wheelStep(): number;
        set wheelStep(value: number);
        /**除去滚动条的宽度*/
        get innerWidth(): number;
        /**除去滚动条的高度度*/
        get innerHeight(): number;
        /**获取数据对应的Item字典*/
        get dataToItemDict(): Dictionary;
        set dragNextEnabled(val: boolean);
        /**禁止拖动到下一项*/
        get dragNextEnabled(): boolean;
        /**禁止拖动到上一项*/
        set dragPreEnabled(val: boolean);
        get dragPreEnabled(): boolean;
        /**滚动区间限制,限制滚动停止的位置以相等的距离*/
        set scrollPosLimit(val: number);
        get scrollPosLimit(): number;
        /**滚动条 0自动 1显示 2不显示*/
        set scrollerPolicy(val: number);
        get scrollerPolicy(): number;
        /**滚动到下一项
         * @return 返回滚动的目标位置
        */
        scrollToNextItem(): number;
        /**滚动到上一项
         * @return 返回滚动的目标位置
        */
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
        /**scrollToNextItem、scrollToPreItem是否叠加滚动，默认true*/
        get overlying(): boolean;
        set overlying(val: boolean);
        /**拖选响应毫秒(默认值)*/ static default_selectInterval: number;
        /**滚轮步长(默认值)*/ static default_wheelStep: number;
        /**是否允许滚轮(默认值)*/ static default_wheelScroll: boolean;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    class GYListH extends GYListBase {
        protected _hScroller: GYScrollBarH;
        /**水平List组件
         @inheritDoc*/
        constructor(size: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        set boxs(val: number);
        get boxs(): number;
        protected boxNumChange(update?: boolean): void;
        get hScroller(): GYScrollBarH;
        /**@inheritDoc*/
        scrollToIndex(val: number): void;
        /**@inheritDoc*/
        scrollToEndIndex(val: number): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        protected scrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        protected wheelRoll(e: any): void;
        set height(val: number);
        get height(): number;
        set width(val: number);
        get width(): number;
        /**滚动条 0自动 1显示 2不显示*/
        get scrollerPolicy(): number;
        set scrollerPolicy(val: number);
        protected downGroup(e: egret.TouchEvent): void;
        protected dragLoop(t: number): void;
        protected groupDrag(): void;
        protected groupDragStop(): void;
        scrollToNextItem(): number;
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
    }
}
/**
 @author 迷途小羔羊
 2015.11.20
 */
declare module GYLite {
    class GYDataListH extends GYListH {
        protected _gridDataVec: GridData[];
        protected _maxGridWidth: number;
        protected _contentGrp: GYGroup;
        protected _lastEndBox: number;
        protected _gridControler: boolean;
        /**水平List组件 格子宽度自定义(格子宽度固定建议使用GYListH) 项数根据宽度自适应
         * @param boxCount 初始化项数据 0初始化 非0 外部赋值
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(boxCount: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        set gridDataVec(val: GridData[]);
        /**每列的格子信息*/
        get gridDataVec(): GridData[];
        getGridData(val: number): GridData;
        /**@inheritDoc*/
        scrollToIndex(val: number): void;
        /**@inheritDoc*/
        scrollToEndIndex(val: number): void;
        /**@inheritDoc*/
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        private clearGridData;
        protected scrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        protected getNowGridData(val: number): GridData;
        /**设置某行高度
         * @param ind 行索引 val 高度值
         * */
        setGridWidth(ind: number, val: number): void;
        /**@inheritDoc*/
        updateGridData(): void;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        static default_boxH: number;
        static default_boxW: number;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    class GYListV extends GYListBase {
        protected _vScroller: GYScrollBarV;
        /**垂直List组件
         @inheritDoc*/
        constructor(size: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        set boxs(val: number);
        get boxs(): number;
        protected boxNumChange(update?: boolean): void;
        get vScroller(): GYScrollBarV;
        /**@inheritDoc*/
        scrollToIndex(val: number): void;
        /**@inheritDoc*/
        scrollToEndIndex(val: number): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        protected scrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        protected wheelRoll(e: any): void;
        set height(val: number);
        get height(): number;
        set width(val: number);
        get width(): number;
        /**滚动条 0自动 1显示 2不显示*/
        set scrollerPolicy(val: number);
        get scrollerPolicy(): number;
        protected downGroup(e: egret.TouchEvent): void;
        protected dragLoop(t: number): void;
        protected groupDrag(): void;
        protected groupDragStop(): void;
        scrollToNextItem(): number;
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
    }
}
/**
 @author 迷途小羔羊
 2015.11.20
 */
declare module GYLite {
    class GYDataListV extends GYListV {
        protected _gridDataVec: GridData[];
        protected _maxGridHeight: number;
        protected _contentGrp: GYGroup;
        protected _lastEndBox: number;
        protected _gridControler: boolean;
        /**垂直List组件 格子高度自定义(格子高度固定建议使用GYListV) 项数根据高度自适应
         * @param boxCount 初始化项数据 0初始化 非0 则需要外部提供s.gridDataVec的行数据
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(boxCount: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        set gridDataVec(val: GridData[]);
        /**每行的格子信息*/
        get gridDataVec(): GridData[];
        getGridData(val: number): GridData;
        /**@inheritDoc*/
        scrollToIndex(val: number): void;
        /**@inheritDoc*/
        scrollToEndIndex(val: number): void;
        /**@inheritDoc*/
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        private clearGridData;
        protected scrollChange(e?: GYScrollerEvent, update?: boolean, updatePos?: boolean): void;
        protected getNowGridData(val: number): GridData;
        /**设置某行高度
         * @param ind 行索引 val 高度值
         * */
        setGridHeight(ind: number, val: number): void;
        /**@inheritDoc*/
        updateGridData(): void;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        static default_boxH: number;
        static default_boxW: number;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    class GYGridH extends GYGridBase {
        protected _hScroller: GYScrollBarH;
        /**横向滚动Grid组件
         * @param cols 列数
         * @param rows 行数
         * @param getGridFunc():IItemRender 返回自定义格子对象的方法
         * @param setGridFunc(IItemRender, any) 设置格子数据的方法*/
        constructor(sizeW: number, sizeH: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        /**inheritDoc*/
        scrollToIndex(val: number): void;
        /**inheritDoc*/
        scrollToEndIndex(val: number): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        /**横向滚动条*/
        get hScroller(): GYScrollBarH;
        /**@inheritDoc*/
        updateGrid(): void;
        set dataProvider(val: Array<any>);
        get dataProvider(): Array<any>;
        private scrollChange;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        set height(val: number);
        get height(): number;
        set width(val: number);
        get width(): number;
        set rows(val: number);
        get rows(): number;
        set cols(val: number);
        get cols(): number;
        protected boxNumChange(update?: boolean): void;
        protected wheelRoll(e: any): void;
        set scrollerPolicy(val: number);
        /**滚动条 0自动 1显示 2不显示*/
        get scrollerPolicy(): number;
        protected downGroup(e: egret.TouchEvent): void;
        protected dragLoop(t: number): void;
        protected groupDrag(): void;
        protected groupDragStop(): void;
        scrollToNextItem(): number;
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
    }
}
/**
 @author 迷途小羔羊
 2015.3.5
 */
declare module GYLite {
    class GYGridV extends GYGridBase {
        protected _vScroller: GYScrollBarV;
        /**垂直滚动Grid组件
        @inheritDoc*/
        constructor(sizeW: number, sizeH: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        /**inheritDoc*/
        scrollToIndex(val: number): void;
        /**inheritDoc*/
        scrollToEndIndex(val: number): void;
        protected selectLine(data: any, selectedData: any, ctrlKey: boolean, checkNext?: boolean): void;
        /**纵向滚动条*/
        get vScroller(): GYScrollBarV;
        /**@inheritDoc*/
        updateGrid(): void;
        /**@inheritDoc*/
        get dataProvider(): Array<any>;
        set dataProvider(val: Array<any>);
        private scrollChange;
        set rows(val: number);
        get rows(): number;
        set cols(val: number);
        get cols(): number;
        protected boxNumChange(update?: boolean): void;
        /**刷新列表可见的所有项*/
        updateItems(): void;
        set height(val: number);
        get height(): number;
        set width(val: number);
        get width(): number;
        protected wheelRoll(e: any): void;
        /**滚动条 0自动 1显示 2不显示*/
        set scrollerPolicy(val: number);
        protected downGroup(e: egret.TouchEvent): void;
        protected dragLoop(t: number): void;
        protected groupDrag(): void;
        protected groupDragStop(): void;
        scrollToNextItem(): number;
        scrollToPreItem(): number;
        protected scrollEnd(e?: GYScrollerEvent): void;
    }
}
declare namespace egret {
    let $TextureScaleFactor: number;
    /**
     * The Texture class encapsulates different image resources on different platforms.
     * In HTML5, resource is an HTMLElement object
     * In OpenGL / WebGL, resource is a texture ID obtained after the GPU is submitted
     * The Texture class encapsulates the details implemented on the underlayer. Developers just need to focus on interfaces
     * @see http://edn.egret.com/cn/docs/page/135 The use of texture packs
     * @see http://edn.egret.com/cn/docs/page/123 Several ways of access to resources
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Texture.ts
     * @language en_US
     */
    /**
     * 纹理类是对不同平台不同的图片资源的封装
     * 在HTML5中，资源是一个HTMLElement对象
     * 在OpenGL / WebGL中，资源是一个提交GPU后获取的纹理id
     * Texture类封装了这些底层实现的细节，开发者只需要关心接口即可
     * @see http://edn.egret.com/cn/docs/page/135 纹理集的使用
     * @see http://edn.egret.com/cn/docs/page/123 获取资源的几种方式
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Texture.ts
     * @language zh_CN
     */
    class Texture extends HashObject {
        /**GYLite
         * lock texture notToRefresh
        */
        $lock: boolean;
        lock(val: boolean): void;
        /**
         * Create an egret.Texture object
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.Texture 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        /**
         * Whether to destroy the corresponding BitmapData when the texture is destroyed
         * @version Egret 5.0.8
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 销毁纹理时是否销毁对应BitmapData
         * @version Egret 5.0.8
         * @platform Web,Native
         * @language zh_CN
         */
        disposeBitmapData: boolean;
        /**
         * @private
         * 表示这个纹理在 bitmapData 上的 x 起始位置
         */
        $bitmapX: number;
        /**
         * @private
         * 表示这个纹理在 bitmapData 上的 y 起始位置
         */
        $bitmapY: number;
        /**
         * @private
         * 表示这个纹理在 bitmapData 上的宽度
         */
        $bitmapWidth: number;
        /**
         * @private
         * 表示这个纹理在 bitmapData 上的高度
         */
        $bitmapHeight: number;
        /**
         * @private
         * 表示这个纹理显示了之后在 x 方向的渲染偏移量
         */
        $offsetX: number;
        /**
         * @private
         * 表示这个纹理显示了之后在 y 方向的渲染偏移量
         */
        $offsetY: number;
        /**
         * @private
         * 纹理宽度
         */
        private $textureWidth;
        /**
         * Texture width, read only
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 纹理宽度，只读属性，不可以设置
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textureWidth(): number;
        $getTextureWidth(): number;
        /**
         * @private
         * 纹理高度
         */
        private $textureHeight;
        /**
         * Texture height, read only
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 纹理高度，只读属性，不可以设置
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textureHeight(): number;
        $getTextureHeight(): number;
        $getScaleBitmapWidth(): number;
        $getScaleBitmapHeight(): number;
        /**
         * @private
         * 表示bitmapData.width
         */
        $sourceWidth: number;
        /**
         * @private
         * 表示bitmapData.height
         */
        $sourceHeight: number;
        /**
         * @private
         */
        $bitmapData: BitmapData;
        /**
         * @private
         */
        $ktxData: ArrayBuffer;
        /**
         * @private
         */
        $rotated: boolean;
        /**
         * The BitmapData object being referenced.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 被引用的 BitmapData 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bitmapData(): BitmapData;
        set bitmapData(value: BitmapData);
        /**
        * Set the BitmapData object.
        * @version Egret 3.2.1
        * @platform Web,Native
        * @language en_US
        */
        /**
         * 设置 BitmapData 对象。
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language zh_CN
         */
        _setBitmapData(value: BitmapData): void;
        /**
         * The KTX object being referenced.
        * @version Egret 5.2.21
        * @platform Web,Native
        * @language en_US
        */
        /**
         * 被引用的 KTXData 对象。
         * @version Egret 5.2.21
         * @platform Web,Native
         * @language zh_CN
         */
        get ktxData(): ArrayBuffer;
        set ktxData(data: ArrayBuffer);
        /**
        * Set the KTXData object.
        * @version Egret 3.2.1
        * @platform Web,Native
        * @language en_US
        */
        /**
         * 设置 KTXData 对象。
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language zh_CN
         */
        _setKtxData(value: ArrayBuffer): void;
        /**
         * @private
         * 设置Texture数据
         * @param bitmapX
         * @param bitmapY
         * @param bitmapWidth
         * @param bitmapHeight
         * @param offsetX
         * @param offsetY
         * @param textureWidth
         * @param textureHeight
         * @param sourceWidth
         * @param sourceHeight
         */
        $initData(bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX: number, offsetY: number, textureWidth: number, textureHeight: number, sourceWidth: number, sourceHeight: number, rotated?: boolean): void;
        /**
         * @deprecated
         */
        getPixel32(x: number, y: number): number[];
        /**
         * Obtain the color value for the specified pixel region
         * @param x  The x coordinate of the pixel region
         * @param y  The y coordinate of the pixel region
         * @param width  The width of the pixel region
         * @param height  The height of the pixel region
         * @returns  Specifies the color value for the pixel region
         * @version Egret 3.2.1
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取指定像素区域的颜色值
         * @param x  像素区域的X轴坐标
         * @param y  像素区域的Y轴坐标
         * @param width  像素区域的宽度
         * @param height  像素区域的高度
         * @returns  指定像素区域的颜色值
         * @version Egret 3.2.1
         * @platform Web
         * @language zh_CN
         */
        getPixels(x: number, y: number, width?: number, height?: number): number[];
        /**
         * Convert base64 string, if the picture (or pictures included) cross-border or null
         * @param type Type conversions, such as "image / png"
         * @param rect The need to convert the area
         * @param smoothing Whether to convert data to the smoothing process
         * @returns {any} base64 string
         * @version Egret 2.4
         * @language en_US
         */
        /**
         * 转换成base64字符串，如果图片（或者包含的图片）跨域，则返回null
         * @param type 转换的类型，如  "image/png"
         * @param rect 需要转换的区域
         * @param {any} encoderOptions 编码用的参数
         * @returns {any} base64字符串
         * @version Egret 2.4
         * @language zh_CN
         */
        toDataURL(type: string, rect?: egret.Rectangle, encoderOptions?: any): string;
        /**
         * Crop designated area and save it as image.
         * native support only "image / png" and "image / jpeg"; Web browser because of the various implementations are not the same, it is recommended to use only these two kinds.
         * @param type Type conversions, such as "image / png"
         * @param filePath The path name of the image (the home directory for the game's private space, the path can not have "../",Web supports only pass names.)
         * @param rect The need to convert the area
         * @version Egret 2.4
         * @platform Native
         * @language en_US
         */
        /**
         * 裁剪指定区域并保存成图片。
         * native只支持 "image/png" 和 "image/jpeg"；Web中由于各个浏览器的实现不一样，因此建议也只用这2种。
         * @param type 转换的类型，如  "image/png"
         * @param filePath 图片的名称的路径（主目录为游戏的私有空间，路径中不能有 "../"，Web只支持传名称。）
         * @param rect 需要转换的区域
         * @version Egret 2.4
         * @platform Native
         * @language zh_CN
         */
        saveToFile(type: string, filePath: string, rect?: egret.Rectangle): void;
        /**
         * dispose texture
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放纹理
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        dispose(): void;
        $batchManager: GYLite.BatchManager;
        get batchManager(): GYLite.BatchManager;
        clear(): void;
    }
}
declare namespace egret {
    /**
     * RenderTexture is a dynamic texture
     * @extends egret.Texture
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/RenderTexture.ts
     * @language en_US
     */
    /**
     * RenderTexture 是动态纹理类，他实现了将显示对象及其子对象绘制成为一个纹理的功能
     * @extends egret.Texture
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/RenderTexture.ts
     * @language zh_CN
     */
    class RenderTexture extends egret.Texture {
        constructor();
        $renderBuffer: sys.RenderBuffer;
        /**
         * The specified display object is drawn as a texture
         * @param displayObject {egret.DisplayObject} the display to draw
         * @param clipBounds {egret.Rectangle} clip rect
         * @param scale {number} scale factor
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将指定显示对象绘制为一个纹理
         * @param displayObject {egret.DisplayObject} 需要绘制的显示对象
         * @param clipBounds {egret.Rectangle} 绘制矩形区域
         * @param scale {number} 缩放比例
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawToTexture(displayObject: egret.DisplayObject, clipBounds?: Rectangle, scale?: number): boolean;
        /**
         * @inheritDoc
         */
        getPixel32(x: number, y: number): number[];
        /**
         * @inheritDoc
         */
        dispose(): void;
    }
}
declare module GYLite {
    /**GYDrawBitmapData是继承BitmapData的位图数据，使用对象池管理的临时位图，使用固定宽高的BitmapData来临时使用
* 例如输入230,230，则提供使用256,256的BitmapData，进行裁切使用，所以尽量接近以下尺寸使用率会更高
* 1024,512,256,128,64,32,16,8*/
    class GYDrawBitmapData extends egret.RenderTexture {
        $bitmapDataId: number;
        id: number;
        /**设定的宽度*/ realWidth: number;
        /**设定的高度*/ realHeight: number;
        private _clearTime;
        private _refCount;
        private _width;
        private _height;
        private _transparent;
        private _fillColor;
        constructor(width: number, height: number, transparent?: boolean, fillColor?: number);
        get clearTime(): number;
        /**此对象的引用计数*/
        get refCount(): number;
        /**获取GYDrawBitmapdata引用，持有引用可保证GYDrawBitmapData不被回收，当引用计数为0则会被定期回收
         * 使用此临时位图的引用必须严格遵守一次getRef获得引用，一次s.relRef释放引用，不要重复操作，以免计数错误，当计数为0，仍然执行s.relRef释放引用的话会抛出异常，此时应检查引用获取与释放是不是严格一对一
         * */
        getRef(): GYDrawBitmapData;
        /**释放引用，引用数为0时，执行此函数会抛出异常*/
        relRef(): void;
        draw(source: any, clipRect?: egret.Rectangle, smoothing?: Boolean): void;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get format(): any;
        set format(val: any);
        private getBitmapData;
        private static _sizeVec;
        private static _bmpVec;
        private static _checkInterval;
        private static _checkTime;
        private static _timeId;
        private static _timeoutMilSec;
        /**内存中GYDrawBitmapData的数量*/ static num: number;
        /**库存位图占用的内存*/ static memory: number;
        /**获取GYDrawBitmapData*/
        static getBitmapData(w: number, h: number): GYDrawBitmapData;
        /**设置位图清理的时间间隔
         * @param val 时间间隔(毫秒) 为0时不回收
         * */
        static setResCheck(val: number): void;
        private static CheckResUse;
    }
}
declare module GYLite {
    /**GYDrawImage一个可以绘制显示对象的位图类，内部使用GYDrawBitmapData临时位图*/
    class GYDrawImage extends GYSprite {
        protected _mySource: egret.Bitmap;
        protected _bitData: GYDrawBitmapData;
        constructor();
        set source(bmp: GYDrawBitmapData);
        /**位图数据*/
        get source(): GYDrawBitmapData;
        /**释放资源，由于使用的是GYDrawBitmapData临时位图，回收时必须释放其持有的GYDrawBitmapData引用*/
        release(): void;
        draw(dis: any, clipRect?: egret.Rectangle, smooth?: boolean): void;
        set width(val: number);
        set height(val: number);
        get width(): number;
        get height(): number;
        protected RlOver(e: egret.TouchEvent): void;
        get smooth(): boolean;
        set smooth(value: boolean);
    }
}
/**
@author 迷途小羔羊
2012.11.18
*/
declare module GYLite {
    class GYImage extends GYSprite {
        protected static _imgLoader: GYLoader;
        static init(): void;
        protected _mySource: GYBitmap;
        protected _archorX: number;
        protected _archorY: number;
        protected _smoothing: boolean;
        protected _texture: egret.Texture;
        constructor();
        validBatch(): void;
        set smoothing(val: boolean);
        get smoothing(): boolean;
        set source(bmp: egret.Texture);
        /**位图*/
        get source(): egret.Texture;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        protected RlOver(e: egret.TouchEvent): void;
        get archorX(): number;
        set archorX(value: number);
        get archorY(): number;
        set archorY(value: number);
        get bitmap(): GYBitmap;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**合批图像的绘制样式**/
        getBatchDrawParam(): BatchDrawParam;
        enableBatch(val: boolean): void;
        /**是否动态合批，请在文本渲染前设定*/
        isBatch(): boolean;
    }
}
declare module GYLite {
    class GYLoadImage extends GYImage {
        /**默认加载失败图片*/ static defaultErrorData: egret.Texture;
        protected _url: string;
        protected _resObj: ResObject;
        protected _isLoading: boolean;
        errorData: egret.Texture;
        /**是否切换时立即清理*/ clearImmedia: boolean;
        constructor();
        protected baseSource(bmp: any): void;
        get source(): any;
        set source(bmp: any);
        private release;
        get url(): string;
        protected setBitmapdata(loadInfo: LoadInfo): void;
    }
}
declare module GYLite {
    class GYSeqImage extends GYImage {
        static default_interval: number;
        protected _seqArr: Array<any>;
        protected _seqIndex: number;
        protected _startTime: number;
        protected _intervalTime: number;
        protected _isRunning: number;
        protected _startIndex: number;
        protected _waitSource: any;
        protected _sourceWaitRate: number;
        protected _loopTimes: number;
        protected _reserveEnd: Boolean;
        private _reserving;
        protected _loops: number;
        protected _frameNum: number;
        private _endFunc;
        private _updateFunc;
        private _endObject;
        private _updateObject;
        private _endIndex;
        get seqArr(): Array<any>;
        get frameNum(): number;
        get seqIndex(): number;
        constructor();
        protected initComponent(): void;
        get source(): any;
        set source(bmp: any);
        /**结束回调，
         * val endFunc(loopTimes) 参数为已播放几次,
         * */
        setEndFunc(val: Function, thisObject: any): void;
        /**更新回调
         *  val endFunc(index) 参数为当前第几帧
         * */
        setUpdateFunc(val: Function, thisObject: any): void;
        protected baseSource(bmp: any): void;
        private setSource;
        /**序列帧播放
         * @ind 起始索引
         * */
        start(seq: Array<any>, seqInd?: number): void;
        private reset;
        /**停止序列帧
         * @ind 如果-1，这清理序列帧 如果是大于-1，则停止在ind索引的图片显示
         * */
        stop(ind?: number): void;
        private loop;
        /**序列帧间隔(毫秒)* */
        get intervalTime(): number;
        set intervalTime(value: number);
        get isRunning(): number;
        /**切换图片时需要达到的帧数（当是序列帧动画） */
        get sourceWaitRate(): number;
        set sourceWaitRate(value: number);
        get reserveEnd(): Boolean;
        set reserveEnd(value: Boolean);
        /**循环多少次停止*/
        get loops(): number;
        set loops(value: number);
        dispose(disposeChild?: boolean, removeChild?: boolean, forceDispose?: boolean): void;
    }
}
declare module GYLite {
    class ItemRender extends GYUIComponent implements IItemRender {
        protected _selected: boolean;
        protected _owner: IList;
        protected _data: any;
        protected _labelDisplay: GYText;
        protected _itemIndex: number;
        protected _row: number;
        protected _col: number;
        constructor();
        setData(obj: any): void;
        getData(): any;
        set owner(val: IList);
        get owner(): IList;
        set selected(val: boolean);
        get selected(): boolean;
        get itemIndex(): number;
        set itemIndex(value: number);
        get row(): number;
        set row(value: number);
        get col(): number;
        set col(value: number);
    }
}
declare module GYLite {
    /**九切片、三切片*/
    class Scale9GridRect {
        /**左边距*/ leftGap: number;
        /**右边距*/ rightGap: number;
        /**上边距*/ topGap: number;
        /**底边距*/ bottomGap: number;
        gridMode: ScaleGridMode;
        /**
         * @param l 左
         * @param r 右
         * @param t 上
         * @param b 下
         * */
        constructor(l?: number, r?: number, t?: number, b?: number, scale3Grid?: ScaleGridMode);
    }
    class ScaleGridMode {
        /**垂直三切片*/ static v3Grid: ScaleGridMode;
        /**水平三切片*/ static h3Grid: ScaleGridMode;
        /**九切片*/ static s9Grid: ScaleGridMode;
    }
}
declare module GYLite {
    class ScaleMode {
        /**缩放*/ static SCALE: number;
        /**裁切*/ static CLIP: number;
        /**重复*/ static REPEAT: number;
        /**自由*/ static FREE: number;
    }
}
declare namespace egret {
    /**
     * The Bitmap class represents display objects that represent bitmap images.
     * The Bitmap() constructor allows you to create a Bitmap object that contains a reference to a BitmapData object.
     * After you create a Bitmap object, use the addChild() or addChildAt() method of the parent DisplayObjectContainer
     * instance to place the bitmap on the display list.A Bitmap object can share its texture reference among several
     * Bitmap objects, independent of translation or rotation properties. Because you can create multiple Bitmap objects
     * that reference the same texture object, multiple display objects can use the same complex texture object
     * without incurring the memory overhead of a texture object for each display object instance.
     *
     * @see egret.Texture
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Bitmap.ts
     * @language en_US
     */
    /**
     * Bitmap 类表示用于显示位图图片的显示对象。
     * 利用 Bitmap() 构造函数，可以创建包含对 BitmapData 对象引用的 Bitmap 对象。创建了 Bitmap 对象后，
     * 使用父级 DisplayObjectContainer 实例的 addChild() 或 addChildAt() 方法可以将位图放在显示列表中。
     * 一个 Bitmap 对象可在若干 Bitmap 对象之中共享其 texture 引用，与缩放或旋转属性无关。
     * 由于能够创建引用相同 texture 对象的多个 Bitmap 对象，因此，多个显示对象可以使用相同的 texture 对象，
     * 而不会因为每个显示对象实例使用一个 texture 对象而产生额外内存开销。
     *
     * @see egret.Texture
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Bitmap.ts
     * @language zh_CN
     */
    class Bitmap extends DisplayObject {
        /**
         * Initializes a Bitmap object to refer to the specified Texture object.
         * @param value The Texture object being referenced.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个引用指定 Texture 实例的 Bitmap 对象
         * @param value 被引用的 Texture 实例
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(value?: Texture);
        protected $texture: Texture;
        $bitmapData: BitmapData;
        protected $bitmapX: number;
        protected $bitmapY: number;
        protected $bitmapWidth: number;
        protected $bitmapHeight: number;
        protected $offsetX: number;
        protected $offsetY: number;
        protected $textureWidth: number;
        protected $textureHeight: number;
        protected $sourceWidth: number;
        protected $sourceHeight: number;
        protected $smoothing: boolean;
        protected $explicitBitmapWidth: number;
        protected $explicitBitmapHeight: number;
        protected createNativeDisplayObject(): void;
        /**
         * @private
         * 显示对象添加到舞台
         */
        $onAddToStage(stage: Stage, nestLevel: number): void;
        /**
         * @private
         * 显示对象从舞台移除
         */
        $onRemoveFromStage(): void;
        /**
         * The Texture object being referenced.
         * If you pass the constructor of type BitmapData or last set for bitmapData, this value returns null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 被引用的 Texture 对象。
         * 如果传入构造函数的类型为 BitmapData 或者最后设置的为 bitmapData，则此值返回 null。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get texture(): Texture;
        set texture(value: Texture);
        /**
         * @private
         */
        $setTexture(value: Texture): boolean;
        $setBitmapData(value: any): void;
        /**
         * @private
         */
        protected setBitmapDataToWasm(data?: Texture): void;
        /**
         * @private
         */
        $refreshImageData(): void;
        /**
         * @protected //GYLite
         */
        protected setImageData(bitmapData: BitmapData, bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX: number, offsetY: number, textureWidth: number, textureHeight: number, sourceWidth: number, sourceHeight: number): void;
        /**
         * @private
         */
        $scale9Grid: egret.Rectangle;
        /**
         * Represent a Rectangle Area that the 9 scale area of Image.
         * Notice: This property is valid only when <code>fillMode</code>
         * is <code>BitmapFillMode.SCALE</code>.
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形区域，它定义素材对象的九个缩放区域。
         * 注意:此属性仅在<code>fillMode</code>为<code>BitmapFillMode.SCALE</code>时有效。
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get scale9Grid(): egret.Rectangle;
        set scale9Grid(value: egret.Rectangle);
        protected $setScale9Grid(value: egret.Rectangle): void;
        /**
         * @private
         */
        $fillMode: string;
        /**
         * Determines how the bitmap fills in the dimensions.
         * <p>When set to <code>BitmapFillMode.REPEAT</code>, the bitmap
         * repeats to fill the region.</p>
         * <p>When set to <code>BitmapFillMode.SCALE</code>, the bitmap
         * stretches to fill the region.</p>
         *
         * @default <code>BitmapFillMode.SCALE</code>
         *
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 确定位图填充尺寸的方式。
         * <p>设置为 <code>BitmapFillMode.REPEAT</code>时，位图将重复以填充区域。</p>
         * <p>设置为 <code>BitmapFillMode.SCALE</code>时，位图将拉伸以填充区域。</p>
         *
         * @default <code>BitmapFillMode.SCALE</code>
         *
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        get fillMode(): string;
        set fillMode(value: string);
        $setFillMode(value: string): boolean;
        /**
         * The default value of whether or not is smoothed when scaled.
         * When object such as Bitmap is created,smoothing property will be set to this value.
         * @default true。
         * @version Egret 3.0
         * @platform Web
         * @language en_US
         */
        /**
         * 控制在缩放时是否进行平滑处理的默认值。
         * 在 Bitmap 等对象创建时,smoothing 属性会被设置为该值。
         * @default true。
         * @version Egret 3.0
         * @platform Web
         * @language zh_CN
         */
        static defaultSmoothing: boolean;
        /**
         * Whether or not the bitmap is smoothed when scaled.
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 控制在缩放时是否对位图进行平滑处理。
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        get smoothing(): boolean;
        set smoothing(value: boolean);
        /**
         * @private
         *
         * @param value
         */
        $setWidth(value: number): boolean;
        /**
         * @private
         *
         * @param value
         */
        $setHeight(value: number): boolean;
        /**
         * @private
         * 获取显示宽度
         */
        $getWidth(): number;
        /**
         * @private
         * 获取显示宽度
         */
        $getHeight(): number;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        /**
         * @private
         */
        $updateRenderNode(): void;
        private _pixelHitTest;
        /**
         * Specifies whether this object use precise hit testing by checking the alpha value of each pixel.If pixelHitTest
         * is set to true,the transparent area of the bitmap will be touched through.<br/>
         * Note:If the image is loaded from cross origin,that we can't access to the pixel data,so it might cause
         * the pixelHitTest property invalid.
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否开启精确像素碰撞。设置为true显示对象本身的透明区域将能够被穿透。<br/>
         * 注意：若图片资源是以跨域方式从外部服务器加载的，将无法访问图片的像素数据，而导致此属性失效。
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get pixelHitTest(): boolean;
        set pixelHitTest(value: boolean);
        $hitTest(stageX: number, stageY: number): DisplayObject;
    }
}
declare module GYLite {
    class GYBitmap extends egret.Bitmap implements IUpdate, IBatch, IResource {
        gyliteFill: boolean;
        protected _batchDrawParam: BatchDrawParam;
        private _batchAtlasName;
        private _batch;
        protected _invalidBatch: boolean;
        /**是否刷新中（内部使用请勿修改）*/
        updating: boolean;
        protected _WMidData: egret.Texture;
        protected _HMidData: egret.Texture;
        protected _imgWidth: number;
        protected _imgHeight: number;
        protected _scale9GridRect: Scale9GridRect;
        protected _clipX: number;
        protected _clipY: number;
        protected _drawX: number;
        protected _drawY: number;
        protected _mode: number;
        protected _invalidDraw: boolean;
        protected _renderMatrix: egret.Matrix;
        protected _repeat: boolean;
        protected _repeatWidth: number;
        protected _repeatHeight: number;
        protected _repeatX: number;
        protected _repeatY: number;
        protected _width: number;
        protected _height: number;
        protected _batchTexture: egret.Texture;
        protected _normalNode: egret.sys.NormalBitmapNode;
        protected _bitmapNode: egret.sys.BitmapNode;
        constructor(value?: egret.Texture, rect?: Scale9GridRect, batch?: boolean);
        clearBatch(): void;
        $setTexture(val: egret.Texture): boolean;
        $refreshImageData(): void;
        $updateRenderNode(): void;
        invalidBatch(): void;
        enableBatch(val: boolean): void;
        /**是否动态合批，请在文本渲染前设定，默认根据父级容器batch，如果父级也没设定，则默认false*/
        isBatch(): boolean;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**合批图像的绘制样式**/
        getBatchDrawParam(): BatchDrawParam;
        validBatch(): void;
        updateView(): void;
        setBatchAtlasName(val: string): void;
        /**合批图集名称，不存在找父级容器的，如果都不存在，默认AtlasRender.defaultAtlasName**/
        getBatchAtlasName(): string;
        $getRenderNode(): egret.sys.RenderNode;
        validDraw(): void;
        private draw;
        beginBitmapFill(m: egret.Matrix, r: boolean): void;
        drawRect(tX: number, tY: number, w: number, h: number): void;
        clearBitmapFill(): void;
        set repeatWidth(val: number);
        /**重复模式的砖块宽度*/
        get repeatWidth(): number;
        set repeatHeight(val: number);
        /**重复模式的砖块高度*/
        get repeatHeight(): number;
        set repeatX(val: number);
        /**重复模式的起始X*/
        get repeatX(): number;
        set repeatY(val: number);
        /**重复模式的起始Y*/
        get repeatY(): number;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        set scale9GridRect(value: Scale9GridRect);
        /**绘制模式 @see ScaleMode
         * @param val 0 拉伸 1 裁切 2 重复 */
        set mode(val: number);
        get mode(): number;
        set clipX(val: number);
        set clipY(val: number);
        /**裁切的s.x坐标*/
        get clipX(): number;
        /**裁切的s.y坐标*/
        get clipY(): number;
        set drawX(val: number);
        set drawY(val: number);
        /**绘制点的s.x坐标*/
        get drawX(): number;
        /**绘制点的s.y坐标*/
        get drawY(): number;
        /**刷新绘图*/
        invalidDraw(): void;
        get scale9GridRect(): Scale9GridRect;
        _disposed: boolean;
        get disposed(): boolean;
        dispose(): void;
    }
}
declare module GYLite {
    class GYScaleSprite extends GYSprite {
        protected _bitmap: GYBitmap;
        /**九切片 此类矢量绘制在Shape上面，不会产生新的BitmapData
         * @param texture 源位图数据
         * @param rect 九宫格
         * @param batch 是否自动合批
         * */
        constructor(texture?: egret.Texture, rect?: Scale9GridRect, batch?: boolean | null);
        set texture(val: egret.Texture);
        set bitmapData(bmp: egret.Texture);
        get texture(): egret.Texture;
        get bitmapData(): egret.Texture;
        get smoothing(): boolean;
        set smoothing(val: boolean);
        set repeatWidth(val: number);
        /**重复模式的砖块宽度*/
        get repeatWidth(): number;
        set repeatHeight(val: number);
        /**重复模式的砖块高度*/
        get repeatHeight(): number;
        set repeatX(val: number);
        /**重复模式的起始X*/
        get repeatX(): number;
        set repeatY(val: number);
        /**重复模式的起始Y*/
        get repeatY(): number;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        set scale9GridRect(value: Scale9GridRect);
        /**绘制模式 @see ScaleMode
         * @param val 0 拉伸 1 裁切 2 重复 */
        set mode(val: number);
        get mode(): number;
        set clipX(val: number);
        set clipY(val: number);
        /**裁切的s.x坐标*/
        get clipX(): number;
        /**裁切的s.y坐标*/
        get clipY(): number;
        set drawX(val: number);
        set drawY(val: number);
        /**绘制点的s.x坐标*/
        get drawX(): number;
        /**绘制点的s.y坐标*/
        get drawY(): number;
        updateView(): void;
        /**刷新绘图*/
        invalidDraw(): void;
        get scale9GridRect(): Scale9GridRect;
    }
}
/**
 @author 迷途小羔羊
 * 2014-6-30
 */
declare module GYLite {
    class GYScrollBase extends GYSkinContainer {
        protected _sliderW: number;
        protected _sliderH: number;
        protected _scrollRange: number;
        protected _scrollMax: number;
        protected _max: number;
        protected _min: number;
        protected _per: number;
        protected _scrollStep: number;
        protected _step: number;
        protected _nowStep: number;
        protected _clkFunc: Function;
        protected _stOffset: number;
        protected _oldMousePos: number;
        protected _hideBtn: boolean;
        protected _barPercent: number;
        protected _value: number;
        protected _maximum: number;
        protected _sliderMinSize: number;
        protected _clkCount: number;
        protected _barChange: boolean;
        protected _tween: GYTween;
        protected _scrollSpeed: number;
        protected _scrollEvent: GYScrollerEvent;
        /**变更模式，决定当滚动条恢复时，保持的位置，默认是0，按百分比保持，1按坐标位置保持*/
        resetMode: number;
        /**限制滚动条最小滚动位置，默认NaN，不限制*/
        limitMin: number;
        /**限制滚动条最大滚动位置，默认NaN，不限制*/
        limitMax: number;
        /**滚动条改变调用的方法，返回Scroller的s.value*/
        constructor(skin?: any);
        protected initComponent(): void;
        updateView(): void;
        /**刷新滚动条*/
        invalidBarView(): void;
        setBar(): void;
        /**单次移动数量，默认1*/
        set step(val: number);
        get step(): number;
        /**滚动分度值，默认为5(像素)*/
        set scrollStep(val: number);
        get scrollStep(): number;
        set value(step: number);
        /**当前进度条位置值(位置/步长)，注意与s.position区分，请勿用此值判断是否超过maximum，应该使用s.position */
        get value(): number;
        /**当前进度条位置值(像素) */
        get position(): number;
        set position(val: number);
        scrollToValue(val: number, time?: number): void;
        scrollToPosition(val: number, time?: number): void;
        protected setSlider(val: number): void;
        protected scrollTweenEnd(): void;
        stopScroll(): void;
        /**滑块最小尺寸 */
        get sliderMinSize(): number;
        set sliderMinSize(val: number);
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get tween(): GYTween;
        set scrollSpeed(val: number);
        /**拖拽滚动的时间*/
        get scrollSpeed(): number;
        /**滚动分度值(默认值)*/ static default_scrollStep: number;
        /**单次移动数量(默认值)*/ static default_step: number;
        /**隐藏按钮(默认值)*/ static default_hideBtn: boolean;
        /**当前位置(默认值)*/ static default_value: number;
        /**最大位置(默认值)*/ static default_maximum: number;
        /**滑块最小尺寸(默认值)*/ static default_sliderMinSize: number;
    }
}
/**
@author 迷途小羔羊
2012.12.30
*/
declare module GYLite {
    class GYScrollBarH extends GYScrollBase {
        constructor(s?: any);
        /**@inheritDoc*/
        setBar(): void;
        private scrollDown;
        private arrowDown1;
        private arrowDown2;
        /**向左滚动
         * @param step 步长(像素)
         * */
        scrollToLeft(step: number): void;
        /**向右滚动
         * @param step 步长(像素)
         * */
        scrollToRight(step: number): void;
        private downBar;
        private arrowOut;
        private enterFrame;
        private clkArrowUp;
        private clkArrowDown;
        private clkBackUp;
        private clkBackDown;
        private moveBar;
        protected setSlider(val: number): void;
        private OutsideUp;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        set sliderH(val: number);
        /**滑块高度*/
        get sliderH(): number;
        /**滑块宽度*/
        get sliderW(): number;
        /**滚动条位置百分比*/
        get per(): number;
        set maximum(val: number);
        /**滚动条滚动最大值(像素)*/
        get maximum(): number;
        set barPercent(val: number);
        /**滑块相对于总长的百分比*/
        get barPercent(): number;
        set hideBtn(val: boolean);
        /**@inheritDoc */
        set skin(val: any);
        protected skinChange(oldSkin: any, newSkin: any): void;
        /**获取皮肤主题，自定义皮肤请实现IScrollerSkin*/
        protected getThemeSkin(): IGYSkin;
    }
}
/**
@author 迷途小羔羊
2012.12.30
*/
declare module GYLite {
    class GYScrollBarV extends GYScrollBase {
        constructor(s?: any);
        /**@inheritDoc*/
        setBar(): void;
        private scrollDown;
        private arrowDown1;
        private arrowDown2;
        /**向上滚动
         * @param step 步长(像素)
         * */
        scrollToTop(step: number): void;
        /**向下滚动
         * @param step 步长(像素)
         * */
        scrollToBottom(step: number): void;
        private rollOverBarBack;
        private downBar;
        private arrowOut;
        private enterFrame;
        private clkArrowUp;
        private clkArrowDown;
        private clkBackUp;
        private clkBackDown;
        private moveBar;
        protected setSlider(val: number): void;
        private outsideUp;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        /**滑块高度*/
        get sliderH(): number;
        set sliderW(val: number);
        /**滑块宽度*/
        get sliderW(): number;
        /**百分比*/
        get per(): number;
        set maximum(val: number);
        /**滚动最大值(像素)*/
        get maximum(): number;
        set barPercent(val: number);
        /**滑块高度相对于总长的百分比*/
        get barPercent(): number;
        set hideBtn(val: boolean);
        /**@inheritDoc */
        set skin(val: any);
        protected skinChange(oldSkin: any, newSkin: any): void;
        /**获取皮肤主题，自定义皮肤请实现IScrollerSkin*/
        protected getThemeSkin(): IGYSkin;
    }
}
declare module GYLite {
    class GYScroller {
        private _scrollBarV;
        private _scrollBarH;
        private _verticalPolicy;
        private _horizonPolicy;
        private _rect;
        private _viewport;
        private _parent;
        private _wheelScrollStep;
        /**滚轮是否启用*/ wheelEnabled: boolean;
        /**滚轮方向 1 纵向 2 横向*/ wheelDirection: number;
        constructor();
        /**滚动条控制的视图，必须是GYGroup*/
        set viewport(val: GYGroup);
        /**检测滚动条*/
        checkBar(e?: GYViewEvent): void;
        private checkRectV;
        private checkRectH;
        private showBar;
        private hideBar;
        set verticalPolicy(val: number);
        /**垂直滚动条 0自动 1显示 2不显示*/
        get verticalPolicy(): number;
        set horizonPolicy(val: number);
        /**水平滚动条 0自动 1显示 2不显示*/
        get horizonPolicy(): number;
        set wheelScrollStep(val: number);
        /**滚轮滚动步长*/
        get wheelScrollStep(): number;
        private scrollFunc;
        set scrollPosY(val: number);
        /**纵向滚动条当前位置value值(位置/步长)*/
        get scrollPosY(): number;
        set scrollPosX(val: number);
        /**横向滚动条当前位置value值(位置/步长)*/
        get scrollPosX(): number;
        get scrollBarH(): GYScrollBarH;
        get scrollBarV(): GYScrollBarV;
        private SetScrollX;
        private SetScrollY;
        set parent(val: GYSprite);
        /**添加到的显示对象*/
        get parent(): GYSprite;
        get viewport(): GYGroup;
    }
}
/**
 @author 迷途小羔羊
 2015.5.25
 */
declare module GYLite {
    class GYTab extends GYDataGrid {
        protected _lastGroup: GYUIComponent;
        protected _lastTab: TabData;
        protected _selGroup: GYUIComponent;
        protected _selTab: TabData;
        protected _autoTop: boolean;
        constructor(cols?: number, rows?: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        protected initComponent(): void;
        protected getGrid(): IItemRender;
        set selectedData(d: any);
        get selectedData(): any;
        set selectedItem(val: IItemRender);
        get selectedItem(): IItemRender;
        protected selDataChange(oldData: TabData, newData: TabData): void;
        /**GYTab只允许选择一个*/
        get canSelectNum(): number;
        set canSelectNum(val: number);
        /**当前选中的组*/
        get selGroup(): GYUIComponent;
        /**上次选中的组*/
        get lastGroup(): GYUIComponent;
        /**当前选中的Tab*/
        get selTab(): TabData;
        /**上次选中的Tab*/
        get lastTab(): TabData;
        /**是否选中自动置顶*/
        get autoTop(): boolean;
        set autoTop(val: boolean);
    }
}
declare module GYLite {
    class GYTabItemRender extends GYButton implements IItemRender {
        protected _owner: IList;
        protected _data: TabData;
        protected _itemIndex: number;
        protected _col: number;
        protected _row: number;
        constructor(skin?: any);
        set selected(val: boolean);
        setData(obj: any): void;
        getData(): any;
        set owner(val: IList);
        get owner(): IList;
        get itemIndex(): number;
        set itemIndex(value: number);
        get col(): number;
        set col(value: number);
        get row(): number;
        set row(value: number);
        protected getThemeSkin(): IGYSkin;
    }
}
/**
 @author 迷途小羔羊
 2015.6.2
 */
declare module GYLite {
    /**TabData是记录Tab组件按钮绑定的数据*/
    class TabData {
        /**按钮标签*/
        label: string;
        /**按钮控制的容器*/
        groupCls: any;
        private _group;
        /**附带参数*/
        param: any;
        private _parent;
        private _selected;
        /**@s.param lab 按钮标签
         * @s.param grp 容器类型
         * @s.param pr 父级容器
         * */
        constructor(lab: string, grp: any, pr: IGYContainer);
        get parent(): IGYContainer;
        set selected(val: boolean);
        get selected(): boolean;
        get group(): GYUIComponent;
    }
}
declare module GYLite {
    class GYTextArea extends GYSkinContainer {
        private _textArea;
        private _vScroller;
        private _textGrp;
        private _editable;
        private _invalidTextArea;
        constructor(skin?: any);
        protected initComponent(): void;
        protected updateComp(event: GYViewEvent): void;
        private domMouseDown;
        private stageTextShow;
        private textUp;
        private textRollOver;
        private textRollOut;
        private textOver;
        private staticTextShow;
        private selectedLoop;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get textArea(): GYText;
        get vScroller(): GYScroller;
        set editable(val: boolean);
        /**是否可编辑*/
        get editable(): boolean;
        get textGrp(): GYGroup;
        /**获取主题皮肤，自定义请实现IGYSkin*/
        protected getThemeSkin(): IGYSkin;
        get text(): string;
        set text(value: string);
        setPadding(val: number): void;
        set paddingTop(val: number);
        set paddingLeft(val: number);
        set paddingRight(val: number);
        set paddingBottom(val: number);
        get paddingTop(): number;
        get paddingLeft(): number;
        get paddingRight(): number;
        get paddingBottom(): number;
        updateView(): void;
        invalidTextArea(): void;
        private groupUpdateComp;
    }
}
declare module GYLite {
    class GYTextInput extends GYSkinContainer {
        protected _textInput: GYText;
        protected _promptText: GYText;
        protected _noInput: boolean;
        protected _isPassword: boolean;
        protected _defaultPromptFormat: TextFormat;
        /**请在主题类内设置默认格式*/ static promptFormat: TextFormat;
        constructor(skin?: TextInputSkin, mul?: boolean);
        protected initComponent(): void;
        protected createPrompt(): void;
        get promptText(): GYText;
        get textInput(): GYText;
        protected getThemeSkin(): IGYSkin;
        set background(val: egret.BitmapData);
        set scale9GridRect(val: Scale9GridRect);
        set text(val: string);
        get text(): string;
        /**输入提示的文本格式*/
        set defaultPromptFormat(val: TextFormat);
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get prompt(): string;
        set prompt(val: string);
        protected textDeactive(e?: egret.Event): void;
        protected textActive(e: egret.Event): void;
        private promptState;
        set paddingTop(val: number);
        set paddingLeft(val: number);
        set paddingRight(val: number);
        set paddingBottom(val: number);
        get paddingTop(): number;
        get paddingLeft(): number;
        get paddingRight(): number;
        get paddingBottom(): number;
    }
}
declare module GYLite {
    class TextFormat {
        font: any;
        bold: any;
        italic: any;
        size: any;
        color: any;
        letterSpacing: any;
        indent: any;
        underline: any;
        leading: any;
        align: any;
        constructor(font?: string, size?: any, color?: any, bold?: any, italic?: any, underline?: any, url?: string, target?: string, align?: string, leftMargin?: any, rightMargin?: any, indent?: any, leading?: any);
        clone(): TextFormat;
        setFormat(t: any): void;
    }
}
declare module GYLite {
    /**富文本的行单元 @see GYRichText*/
    class RichLine {
        private _lineArr;
        constructor(pGroup: GYRichText, w: number);
        /**@param index 插入索引，-1为放到末尾*/
        Add(obj: Object, index?: number): void;
        Show(): void;
        /**清理回收*/
        clear(): void;
        ResetY(value?: number): void;
        set y(value: number);
        get width(): number;
        private clearHTML;
        private _lineVec;
        private _nowBottom;
        private _preBottom;
        private _tmpX;
        private _y;
        bottom: number;
        top: number;
        private _pGroup;
        private _width;
        private _tmpW;
    }
}
declare module GYLite {
    /**
     * 包含图片样式： <code>&lt;bmp s.width='' s.height='' target='**' render='**' renderParam='**' s.clear='**' &gt;</code>
     * 可自定义更多样式
     */
    class GYRichText extends GYGroup {
        static imageList: Array<any>;
        /**文本容器*/
        get richSp(): GYSprite;
        /**混排容器*/
        get imgGrp(): GYSprite;
        get maxLines(): number;
        set maxLines(value: number);
        set richTop(value: number);
        /**上边界*/
        get richTop(): number;
        set leading(value: number);
        /**行间距*/
        get leading(): number;
        /**文本格式*/
        get textFormat(): TextFormat;
        set letterSpacing(value: number);
        /**字间距*/
        get letterSpacing(): number;
        /**文本高度*/
        get textHeight(): number;
        /**文本宽度*/
        get textWidth(): number;
        /**点击函数*/
        get linkFun(): Function;
        setLinkFun(fun: Function, thisObject: any): void;
        get embedFont(): boolean;
        set embedFont(value: boolean);
        /**首行固定*/
        get firstLineFix(): boolean;
        set firstLineFix(value: boolean);
        /**鼠标所在的文本元素*/
        get whichLine(): number;
        constructor();
        getRichLabel(indent?: number): RichLabel;
        /**添加间距*/
        appendGap(value?: number): void;
        /**添加文本*/
        appendText(text: string): void;
        /**清理内容*/
        clear(): void;
        private splitStr;
        /**获取图片文本
         * @param w-宽度 h-高度 Id-图片id
         * */
        static getImageRich(Id?: number, offsetX?: number, offsetY?: number, w?: number, h?: number): string;
        /**获取url图片文本
         * @param w-宽度 h-高度 Id-图片id
         * */
        static getUrlImageRich(url: string, offsetX?: number, offsetY?: number, w?: number, h?: number): string;
        private static _endReg;
        private static _tagReg;
        private static _attrReg;
        private _lineVec;
        private _richSP;
        private _imgGrp;
        private _firstLineFix;
        private _embedFont;
        private _maxLines;
        private _y;
        private _padTop;
        private _linkFun;
        private _linkThisObject;
        private _tmpW;
        private _textFormat;
    }
}
declare module GYLite {
    /**富文本的图片单元 @see GYRichText*/
    class RichImage extends GYLoadImage implements IPoolObject {
        owner: GYRichText;
        constructor();
        get inPool(): boolean;
        set inPool(val: boolean);
        outPoolInit(): void;
        private _inPool;
        /**清理回收*/
        clear(): void;
        private static _pool;
        /**获取图片实例
         * @param pr 父级对象
         * @param posX s.x坐标
         * @param posY s.y坐标
         * @param param 参数*/
        static getInstance(pr: GYRichText, posX: number, posY: number, param: string): RichImage;
        /**获取图片实例 param url,s.width,s.height*/
        static getUrlInstance(pr: GYRichText, posX: number, posY: number, param: string): RichImage;
    }
}
declare module GYLite {
    /**富文本的文本单元 @see GYRichText*/
    class RichLabel extends GYText implements IPoolObject {
        private _linkFun;
        private _linkThisObject;
        /**@param textFormat 文本格式
         * @param indent 首行缩进
         * */
        constructor();
        clear(): void;
        set height(val: number);
        get height(): number;
        get linkFun(): Function;
        setLinkFun(value: Function, thisObject: any): void;
        cutLastLine(): string;
        getElementString(e: any): string;
        get inPool(): boolean;
        set inPool(val: boolean);
        outPoolInit(): void;
        private _inPool;
        private _lastLineHtml;
        private _lastLineText;
    }
}
declare module GYLite {
    /**富文本的图片单元 @see GYRichText*/
    class RichSeqImage extends GYSeqImage implements IPoolObject {
        owner: GYRichText;
        constructor();
        getInit(): void;
        $onAddToStage(stage: egret.Stage, nestLevel: number): void;
        $onRemoveFromStage(): void;
        protected clipScroll(e?: GYViewEvent): void;
        get inPool(): boolean;
        set inPool(val: boolean);
        outPoolInit(): void;
        private _inPool;
        /**清理回收*/
        clear(): void;
        static imageList: Array<any>;
        /**获取图片实例
         * @param pr 父级对象
         * @param posX s.x坐标
         * @param posY s.y坐标
         * @param param 参数*/
        static getInstance(pr: GYRichText, posX: number, posY: number, param: string): RichSeqImage;
        /**获取图片文本
         * @param w-宽度 h-高度 Id-图片id
         * */
        static getImageRich(Id?: number, offsetX?: number, offsetY?: number, w?: number, h?: number): string;
    }
}
/**
 @author 迷途小羔羊
 2015.6.5
 */
declare module GYLite {
    /**复选框*/
    class GYCheckBox extends GYButton {
        constructor(skin?: any);
        protected initComponent(): void;
        /**获取主题皮肤，自定义皮肤请实现ICheckBoxSkin接口*/
        protected getThemeSkin(): IGYSkin;
        /**文本与复选框的间隙*/
        get gap(): number;
        set gap(val: number);
    }
}
declare module GYLite {
    /**进度条*/
    class GYProgressBar extends GYSkinContainer {
        /**从上到下*/ static UP_DOWN: number;
        /**从下到上*/ static DOWN_UP: number;
        /**从左到右*/ static LEFT_RIGHT: number;
        /**从右到左*/ static RIGHT_LEFT: number;
        protected _value: number;
        protected _max: number;
        protected _min: number;
        protected _barMax: number;
        protected _barMin: number;
        protected _barVal: number;
        protected _type: number;
        protected _barX: number;
        protected _barY: number;
        protected _invalidValue: boolean;
        protected _moveTime: number;
        protected _startTime: number;
        protected _tarVal: number;
        protected _lastVal: number;
        protected _tempVal: number;
        protected _tempVal2: number;
        protected _moveBack: boolean;
        private _commitEvent;
        /**格式化显示的文本 function(cur:number,max:number):string*/ formatValueFunc: Function;
        /**@param s.skin 皮肤请使用ProgressBarSkin 自定义请实现IProgressBarSkin接口
         * @param s.type 类型，进度条的变化方向 GYProgressBar.UP_DOWN等方向
         * */
        constructor(skin?: IProgressBarSkin, type?: number);
        protected initComponent(): void;
        moveTo(val: number): void;
        protected MoveLoop(t: number): void;
        /**进度条当前值*/
        set value(val: number);
        get value(): number;
        /**@param commit 设置进度条当前值(会派发VALUECOMMIT通知)*/
        setValue(val: number, commit?: boolean): void;
        /**进度条最大值*/
        set max(val: number);
        get max(): number;
        set min(val: number);
        get min(): number;
        /**进度条最大长度*/
        get barMax(): number;
        set barMax(val: number);
        /**进度条最小长度*/
        get barMin(): number;
        set barMin(val: number);
        protected setBar(): void;
        /**设置进度条方向，请参照GYProgressBar定义的常量，如GYProgressBar.RIGHT_LEFT*/
        set type(val: number);
        get type(): number;
        /**进度条当前长度*/
        get barVal(): number;
        /**文本*/
        get labelDisplay(): GYText;
        /**进度条初始X坐标*/
        get barX(): number;
        set barX(val: number);
        /**进度条初始Y坐标*/
        get barY(): number;
        set barY(val: number);
        /**刷新s.value*/
        invalidValue(): void;
        protected validValue(commit?: boolean): void;
        updateView(): void;
        set moveBack(val: boolean);
        /**是否达到尽头从起点重新开始*/
        get moveBack(): boolean;
        get mode(): number;
        set mode(val: number);
        set label(val: string);
        get label(): string;
        /**进度条动画播放时长*/
        set moveTime(val: number);
        set skin(val: any);
        /**自定义皮肤请实现IProgressBarSkin或继承ProgressBarSkin*/
        protected getThemeSkin(): IGYSkin;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get barSkin(): GYScaleSprite;
        get backgroundSkin(): GYScaleSprite;
        static default_barX: number;
        static default_barY: number;
        static default_moveTime: number;
        static default_moveBack: boolean;
    }
}
declare module GYLite {
    class GYSlider extends GYProgressBar {
        protected _sliderX: number;
        protected _sliderY: number;
        protected _scrollStep: number;
        protected _downOffsetX: number;
        protected _downOffsetY: number;
        protected _downX: number;
        protected _downY: number;
        /**格式化显示的文本 function(val:number):string*/ formatValueFunc: Function;
        constructor(skin?: ISliderSkin, type?: number);
        protected initComponent(): void;
        protected addToStage(e: egret.Event): void;
        protected removeFromStage(e: egret.Event): void;
        protected downSlider(e: egret.TouchEvent): void;
        protected upSlider(e?: egret.TouchEvent): void;
        protected sliderLoop(t: number): void;
        setValueByPos(mX: number): void;
        protected setBar(): void;
        /**滑块初始X坐标*/
        get sliderX(): number;
        set sliderX(val: number);
        /**滑块初始s.y坐标*/
        get sliderY(): number;
        set sliderY(val: number);
        /**分度值*/
        set scrollStep(val: number);
        get scrollStep(): number;
        /**自定义皮肤请实现ISliderSkin或继承SliderSkin*/
        protected getThemeSkin(): IGYSkin;
        get sliderBtn(): GYButton;
        static default_sliderX: number;
        static default_sliderY: number;
        static default_scrollStep: number;
    }
}
declare module GYLite {
    /**当鼠标悬停在显示对象的时候，设置s.toolTipString会弹出GYToolTip类的面板提示信息*/
    class GYToolTip extends GYSprite {
        private background;
        labelDisplay: GYText;
        private gradientMatrix;
        private colorArr;
        private alphaArr;
        private percentArr;
        tipfollowTarget: GYSprite;
        /**当前提示的显示对象*/
        user: IGYInteractiveDisplay;
        /**tip的s.x偏移,请在s.show方法调用前设置一次，s.hide方法调用将会被重置为默认值*/
        offsetX: number;
        /**tip的s.y偏移,请在s.show方法调用前设置一次，s.hide方法调用将会被重置为默认值*/
        offsetY: number;
        constructor();
        protected initComponent(): void;
        updateView(): void;
        protected drawBackground(w: number, h: number): void;
        setText(val: string): GYToolTip;
        /**显示tip*/
        show(layer: egret.DisplayObjectContainer, isFollow?: boolean): void;
        hide(): void;
        private FollowLoop;
        /**重写此方法，可以自定义布局的位置*/
        protected updatePos(): void;
        private static _toolTip;
        static getInstance(): GYToolTip;
    }
}
declare module egret {
    var bufferScale: number;
    function getString(code: any): any;
    function $error(code: any, ...rest: any[]): void;
    function $warn(code: any, ...rest: any[]): void;
    function $markReadOnly(instance: any, property: any, isProperty: any): void;
    function $markCannotUse(instance: any, property: any, defaultValue: any): void;
}
declare module egret {
    class Application {
        static instance: Application;
        egretProUtil: any;
    }
}
declare namespace egret.pro {
    let egret3dDriveMode: boolean;
    let mainCanvas: HTMLCanvasElement;
    /**
     * 根据场景地址获取场景，并将主摄像机Main Camera渲染为2d贴图并返回
     * 只能在场景中只有一个相机（Main Camera）时使用
     * @param scenePath 场景路径（相对与3d项目resource文件夹）
     * @param textureWidth 贴图宽度 ，默认为512
     * @param textureHeight 贴图高度 ，默认为512
     * @param scaleFactor 贴图质量。系数越大，贴图越清晰
     */
    function createTextureFrom3dScene(scenePath: string, textureWidth?: number, textureHeight?: number, scaleFactor?: number): Promise<egret.Texture>;
    /**
     * 根据场景地址获取场景，并根据过滤器，获取所有符合条件的相机，渲染为2d贴图并返回
     * 单一场景需要用到多个摄像机时可使用此方法
     * 被filter过滤掉的Camera组件会将enable设为false
     * @param scenePath
     * @param filter 判断该树节点的相机组件是否需要作为egret.Texture返回
     * @param textureWidth
     * @param textureHeight
     * @param scaleFactor
     */
    function createTextureForCameras(scenePath: string, filter: (child: TreeNode) => boolean, textureWidth?: number, textureHeight?: number, scaleFactor?: number): Promise<{
        [key: string]: egret.Texture;
    }>;
    /**
     * 执行方法
     * 通过传入命令的字符串，获取已注册的方法并执行，参数为可变参数
     * 执行方法可获取到方法的返回值
     * 若找到注册该方法，会报出警告并返回 null
     * @param command
     * @param thisObject
     * @param args
     */
    function execute(command: string, ...args: any[]): any;
    /**
     * 注册方法
     * 根据传入字符串名称，注册方法
     * 同一个名称的方法只能注册一次，相同名称会报出警告
     * @param command
     * @param func
     * @param thisObject
     */
    function register(command: string, func: (...args: any[]) => any, thisObject: any): any;
    /**
     * 注册事件
     * @param eventType
     * @param target
     * @param func
     * @param thisObject
     */
    function addEventListener(eventType: string, target: any, func: (...args: any[]) => void, thisObject: any): void;
    /**
     * 移除事件
     * @param eventType
     * @param target
     * @param func
     */
    function removeEventListener(eventType: string, target: any, func: (...args: any[]) => void): void;
    /**
     * 派发事件
     * @param command
     * @param target
     * @param args
     */
    function dispatch(command: string, target: any, ...args: any[]): void;
    /**
     * egret Pro中TreeNode部分对外属性
     */
    type TreeNode = {
        name: string;
        tag: string;
        layer: number;
        path: string;
        childCount: number;
    };
}
declare module GYLite {
    class MathUtils3D {
        constructor();
        static isZero(v: number): boolean;
        static nearEqual(n1: number, n2: number): boolean;
        static fastInvSqrt(value: number): number;
        static zeroTolerance: number;
        static MaxValue: number;
        static MinValue: number;
    }
}
declare module GYLite {
    class Vector4 {
        elements: Float32Array;
        constructor(x?: number, y?: number, z?: number, w?: number);
        /**
         *从Array数组拷贝值。
         *@param array 数组。
         *@param offset 数组偏移。
         */
        fromArray(array: number[], offset?: number): void;
        /**
         *克隆。
         *@param destObject 克隆源。
         */
        cloneTo(destObject: Vector4): void;
        /**
         *克隆。
         *@return 克隆副本。
         */
        clone(): Vector4;
        /**
         *求四维向量的长度。
         *@return 长度。
         */
        length(): number;
        /**
         *求四维向量长度的平方。
         *@return 长度的平方。
         */
        lengthSquared(): number;
        /**
         *设置X轴坐标。
         *@param value X轴坐标。
         */
        /**
         *获取X轴坐标。
         *@return X轴坐标。
         */
        get x(): number;
        set x(value: number);
        /**
         *设置Y轴坐标。
         *@param value Y轴坐标。
         */
        /**
         *获取Y轴坐标。
         *@return Y轴坐标。
         */
        get y(): number;
        set(value: number): void;
        /**
         *设置Z轴坐标。
         *@param value Z轴坐标。
         */
        /**
         *获取Z轴坐标。
         *@return Z轴坐标。
         */
        get z(): number;
        set z(value: number);
        /**
         *设置W轴坐标。
         *@param value W轴坐标。
         */
        /**
         *获取W轴坐标。
         *@return W轴坐标。
         */
        get w(): number;
        set w(value: number);
        static lerp(a: Vector4, b: Vector4, t: number, out: Vector4): void;
        static transformByM4x4(vector4: Vector4, m4x4: Matrix4x4, out: Vector4): void;
        static equals(a: Vector4, b: Vector4): boolean;
        static normalize(s: Vector4, out: Vector4): void;
        static add(a: Vector4, b: Vector4, out: Vector4): void;
        static subtract(a: Vector4, b: Vector4, out: Vector4): void;
        static multiply(a: Vector4, b: Vector4, out: Vector4): void;
        static scale(a: Vector4, b: number, out: Vector4): void;
        static Clamp(value: Vector4, min: Vector4, max: Vector4, out: Vector4): void;
        static distanceSquared(value1: Vector4, value2: Vector4): number;
        static distance(value1: Vector4, value2: Vector4): number;
        static dot(a: Vector4, b: Vector4): number;
        static min(a: Vector4, b: Vector4, out: Vector4): void;
        static max(a: Vector4, b: Vector4, out: Vector4): void;
        static ZERO: Vector4;
        static ONE: Vector4;
        static UnitX: Vector4;
        static UnitY: Vector4;
        static UnitZ: Vector4;
        static UnitW: Vector4;
    }
}
declare module GYLite {
    class Vector3 {
        elements: Float32Array;
        constructor(x?: number, y?: number, z?: number);
        /**
         *从Array数组拷贝值。
         *@param array 数组。
         *@param offset 数组偏移。
         */
        fromArray(array: number[], offset?: number): void;
        /**
         *克隆。
         *@param destObject 克隆源。
         */
        cloneTo(destObject: Vector3): void;
        /**
         *克隆。
         *@return 克隆副本。
         */
        clone(): Vector3;
        toDefault(): void;
        reset(x: number, y: number, z: number): void;
        /**
         *设置X轴坐标。
         *@param value X轴坐标。
         */
        set x(value: number);
        /**
         *获取X轴坐标。
         *@return X轴坐标。
         */
        get x(): number;
        /**
         *设置Y轴坐标。
         *@param value Y轴坐标。
         */
        /**
         *获取Y轴坐标。
         *@return Y轴坐标。
         */
        get y(): number;
        set y(value: number);
        /**
         *设置Z轴坐标。
         *@param value Z轴坐标。
         */
        set z(value: number);
        /**
         *获取Z轴坐标。
         *@return Z轴坐标。
         */
        get z(): number;
        static distanceSquared(value1: Vector3, value2: Vector3): number;
        static distance(value1: Vector3, value2: Vector3): number;
        static min(a: Vector3, b: Vector3, out: Vector3): void;
        static max(a: Vector3, b: Vector3, out: Vector3): void;
        static transformQuat(source: Vector3, rotation: Quaternion, out: Vector3): void;
        static scalarLength(a: Vector3): number;
        static scalarLengthSquared(a: Vector3): number;
        static normalize(s: Vector3, out: Vector3): void;
        static multiply(a: Vector3, b: Vector3, out: Vector3): void;
        static scale(a: Vector3, b: number, out: Vector3): void;
        static lerp(a: Vector3, b: Vector3, t: number, out: Vector3): void;
        static transformV3ToV3(vector: Vector3, transform: Matrix4x4, result: Vector3): void;
        static transformV3ToV4(vector: Vector3, transform: Matrix4x4, result: Vector4): void;
        static TransformNormal(normal: Vector3, transform: Matrix4x4, result: Vector3): void;
        static transformCoordinate(coordinate: Vector3, transform: Matrix4x4, result: Vector3): void;
        static Clamp(value: Vector3, min: Vector3, max: Vector3, out: Vector3): void;
        static add(a: Vector3, b: Vector3, out: Vector3): void;
        static subtract(a: Vector3, b: Vector3, o: Vector3): void;
        static cross(a: Vector3, b: Vector3, o: Vector3): void;
        static dot(a: Vector3, b: Vector3): number;
        static equals(a: Vector3, b: Vector3): boolean;
        static ZERO: Vector3;
        static ONE: Vector3;
        static NegativeUnitX: Vector3;
        static UnitX: Vector3;
        static UnitY: Vector3;
        static UnitZ: Vector3;
        static ForwardRH: Vector3;
        static ForwardLH: Vector3;
        static Up: Vector3;
        static NAN: Vector3;
        static _tempVector4: Vector4;
    }
}
declare module GYLite {
    class Matrix3x3 {
        elements: Float32Array;
        constructor(m11?: number, m12?: number, m13?: number, m21?: number, m22?: number, m23?: number, m31?: number, m32?: number, m33?: number);
        static createRotationQuaternion(rotation: Quaternion, out: Matrix3x3): void;
        static createFromTranslation(trans: Vector2, out: Matrix3x3): void;
        static createFromRotation(rad: number, out: Matrix3x3): void;
        static createFromScaling(scale: Vector3, out: Matrix3x3): void;
        static createFromMatrix4x4(sou: Matrix4x4, out: Matrix4x4): void;
        static multiply(left: Matrix3x3, right: Matrix3x3, out: Matrix3x3): void;
        determinant(): number;
        translate(trans: Vector2, out: Matrix3x3): void;
        rotate(rad: any, out: Matrix3x3): void;
        scale(scale: any, out: Matrix3x3): void;
        invert(out: Matrix3x3): void;
        transpose(out: Matrix3x3): void;
        identity(): void;
        cloneTo(destObject: Matrix3x3): Matrix3x3;
        clone(): Matrix3x3;
        static lookAt(eye: Vector3, target: Vector3, up: Vector3, out: Matrix3x3): void;
        static DEFAULT: Matrix3x3;
        static _tempV30: Vector3;
        static _tempV31: Vector3;
        static _tempV32: Vector3;
    }
}
declare module GYLite {
    class Quaternion {
        elements: Float32Array;
        constructor(x?: number, y?: number, z?: number, w?: number);
        /**
         *根据缩放值缩放四元数
        *@param scale 缩放值
        *@param out 输出四元数
        */
        scaling(scaling: number, out: Quaternion): void;
        /**
         *归一化四元数
        *@param out 输出四元数
        */
        normalize(out: Quaternion): void;
        /**
         *计算四元数的长度
        *@return 长度
        */
        length(): number;
        /**
         *根据绕X轴的角度旋转四元数
        *@param rad 角度
        *@param out 输出四元数
        */
        rotateX(rad: number, out: Quaternion): void;
        /**
         *根据绕Y轴的制定角度旋转四元数
        *@param rad 角度
        *@param out 输出四元数
        */
        rotateY(rad: any, out: any): void;
        /**
         *根据绕Z轴的制定角度旋转四元数
        *@param rad 角度
        *@param out 输出四元数
        */
        rotateZ(rad: number, out: Quaternion): void;
        /**
         *分解四元数到欧拉角（顺序为Yaw、Pitch、Roll），参考自http://xboxforums.create.msdn.com/forums/p/4574/23988.aspx#23988,问题绕X轴翻转超过±90度时有，会产生瞬间反转
        *@param quaternion 源四元数
        *@param out 欧拉角值
        */
        getYawPitchRoll(out: Vector3): void;
        /**
         *求四元数的逆
        *@param out 输出四元数
        */
        invert(out: Quaternion): void;
        /**
         *设置四元数为单位算数
        *@param out 输出四元数
        */
        identity(): void;
        /**
         *从Array数组拷贝值。
        *@param array 数组。
        *@param offset 数组偏移。
        */
        fromArray(array: number[], offset?: number): void;
        /**
         *克隆。
        *@param destObject 克隆源。
        */
        cloneTo(destObject: Quaternion): Quaternion;
        /**
         *克隆。
        *@return 克隆副本。
        */
        clone(): Quaternion;
        equals(b: Quaternion): boolean;
        /**
         *计算长度的平方。
        *@return 长度的平方。
        */
        lengthSquared(): number;
        /**
         *获取四元数的x值
        */
        get x(): number;
        /**
         *获取四元数的y值
        */
        get y(): number;
        /**
         *获取四元数的z值
        */
        get z(): number;
        /**
         *获取四元数的w值
        */
        get w(): number;
        static createFromYawPitchRoll(yaw: number, pitch: number, roll: number, out: Quaternion): void;
        static multiply(left: Quaternion, right: Quaternion, out: Quaternion): void;
        static arcTanAngle(x: number, y: number): number;
        static angleTo(from: Vector3, location: Vector3, angle: Vector3): void;
        static createFromAxisAngle(axis: Vector3, rad: number, out: Quaternion): void;
        static createFromMatrix3x3(sou: Matrix3x3, out: Quaternion): void;
        static createFromMatrix4x4(mat: Matrix4x4, out: Quaternion): void;
        static slerp(left: Quaternion, right: Quaternion, t: number, out: Quaternion): Float32Array;
        static lerp(left: Quaternion, right: Quaternion, t: number, out: Quaternion): void;
        static add(left: Quaternion, right: Quaternion, out: Quaternion): void;
        static dot(left: Vector3, right: Vector3): number;
        static rotationLookAt(forward: Vector3, up: Vector3, out: Quaternion): void;
        static lookAt(eye: Vector3, target: Vector3, up: Vector3, out: Quaternion): void;
        static invert(value: Quaternion, out: Quaternion): void;
        static rotationMatrix(matrix3x3: Matrix3x3, out: Quaternion): void;
        static DEFAULT: Quaternion;
        static TEMPVector30: Vector3;
        static TEMPVector31: Vector3;
        static TEMPVector32: Vector3;
        static TEMPVector33: Vector3;
        static TEMPMatrix0: Matrix4x4;
        static TEMPMatrix1: Matrix4x4;
        static _tempMatrix3x3: Matrix3x3;
        static NAN: Quaternion;
    }
}
declare module GYLite {
    class Matrix4x4 {
        elements: Float32Array;
        constructor(m11?: number, m12?: number, m13?: number, m14?: number, m21?: number, m22?: number, m23?: number, m24?: number, m31?: number, m32?: number, m33?: number, m34?: number, m41?: number, m42?: number, m43?: number, m44?: number);
        getElementByRowColumn(row: number, column: number): number;
        setElementByRowColumn(row: number, column: number, value: number): void;
        /**
         *判断两个4x4矩阵的值是否相等。
        *@param other 4x4矩阵
        */
        equalsOtherMatrix(other: Matrix4x4): boolean;
        /**
         *分解矩阵为平移向量、旋转四元数、缩放向量。
        *@param translation 平移向量。
        *@param rotation 旋转四元数。
        *@param scale 缩放向量。
        *@return 是否分解成功。
        */
        decomposeTransRotScale(translation: Vector3, rotation: Quaternion, scale: Vector3): boolean;
        /**
         *分解矩阵为平移向量、旋转矩阵、缩放向量。
        *@param translation 平移向量。
        *@param rotationMatrix 旋转矩阵。
        *@param scale 缩放向量。
        *@return 是否分解成功。
        */
        decomposeTransRotMatScale(translation: Vector3, rotationMatrix: Matrix4x4, scale: Vector3): boolean;
        /**
         *分解旋转矩阵的旋转为YawPitchRoll欧拉角。
        *@param out float yaw
        *@param out float pitch
        *@param out float roll
        *@return
        */
        decomposeYawPitchRoll(yawPitchRoll: Vector3): void;
        /**归一化矩阵 */
        normalize(): void;
        /**计算矩阵的转置矩阵*/
        transpose(): Matrix4x4;
        /**
         *计算一个矩阵的逆矩阵
        *@param out 输出矩阵
        */
        invert(out: Matrix4x4): void;
        /**设置矩阵为单位矩阵*/
        identity(): void;
        /**
         *克隆。
        *@param destObject 克隆源。
        */
        cloneTo(destObject: Matrix4x4): void;
        /**
         *克隆。
        *@return 克隆副本。
        */
        clone(): Matrix4x4;
        /**
         *获取平移向量。
        *@param out 平移向量。
        */
        getTranslationVector(out: Vector3): void;
        /**
         *设置平移向量。
        *@param translate 平移向量。
        */
        setTranslationVector(translate: Vector3): void;
        /**
         *获取前向量。
        *@param out 前向量。
        */
        getForward(out: Vector3): void;
        /**
         *设置前向量。
        *@param forward 前向量。
        */
        setForward(forward: Vector3): void;
        static createRotationX(rad: number, out: Matrix4x4): void;
        static createRotationY(rad: number, out: Matrix4x4): void;
        static createRotationZ(rad: number, out: Matrix4x4): void;
        static createRotationYawPitchRoll(yaw: number, pitch: number, roll: number, result: Matrix4x4): void;
        static createRotationAxis(axis: Vector3, angle: number, result: Matrix4x4): void;
        static createRotationQuaternion(rotation: Quaternion, result: Matrix4x4): void;
        static createTranslate(trans: Vector3, out: Matrix4x4): void;
        static createScaling(scale: Vector3, out: Matrix4x4): void;
        static multiply(left: Matrix4x4, right: Matrix4x4, out: Matrix4x4): void;
        static createFromQuaternion(rotation: Quaternion, out: Matrix4x4): void;
        static createAffineTransformation(trans: Vector3, rot: Quaternion, scale: Vector3, out: Matrix4x4): void;
        static createLookAt(eye: Vector3, target: Vector3, up: Vector3, out: Matrix4x4): void;
        static createPerspective(fov: number, aspect: number, near: number, far: number, out: Matrix4x4): void;
        static createOrthoOffCenterRH(left: number, right: number, bottom: number, top: number, near: number, far: number, out: Matrix4x4): void;
        translation(v3: Vector3, out: Matrix4x4): void;
        private static _tempMatrix4x4;
        private static _tempVector0;
        private static _tempVector1;
        private static _tempVector2;
        private static _tempQuaternion;
        private static DEFAULT;
        private static ZERO;
    }
}
declare module GYLite {
    class Transform3D extends egret.EventDispatcher {
        private _localQuaternionUpdate;
        private _locaEulerlUpdate;
        private _localUpdate;
        private _worldUpdate;
        private _positionUpdate;
        private _rotationUpdate;
        private _scaleUpdate;
        private _parent;
        private _localPosition;
        private _localRotation;
        private _localScale;
        private _localRotationEuler;
        private _localMatrix;
        private _position;
        private _rotation;
        private _scale;
        private _worldMatrix;
        private _forward;
        private _up;
        private _right;
        private _owner;
        private _childs;
        /**变换中心点,注意:该中心点不受变换的影响。*/
        pivot: any;
        constructor(owner: any);
        /**
         *@private
        */
        private _updateLocalMatrix;
        /**
         *@private
        */
        private _onWorldPositionRotationTransform;
        /**
         *@private
        */
        private _onWorldPositionScaleTransform;
        /**
         *@private
        */
        private _onWorldPositionTransform;
        /**
         *@private
        */
        private _onWorldRotationTransform;
        /**
         *@private
        */
        private _onWorldScaleTransform;
        /**
         *@private
        */
        private _onWorldTransform;
        /**
         *平移变换。
        *@param translation 移动距离。
        *@param isLocal 是否局部空间。
        */
        translate: (translation: any, isLocal: any) => void;
        /**
         *旋转变换。
        *@param rotations 旋转幅度。
        *@param isLocal 是否局部空间。
        *@param isRadian 是否弧度制。
        */
        rotate: (rotation: any, isLocal: any, isRadian: any) => void;
        /**
         *观察目标位置。
        *@param target 观察目标。
        *@param up 向上向量。
        *@param isLocal 是否局部空间。
        */
        lookAt: (target: any, up: any, isLocal: any) => void;
        /**
         *@private
        */
        get _isFrontFaceInvert(): boolean;
        /**
         *获取所属精灵。
        */
        get owner(): any;
        /**
         *设置局部旋转。
        *@param value 局部旋转。
        */
        /**
         *获取局部旋转。
        *@return 局部旋转。
        */
        get localRotation(): Quaternion;
        set localRotation(value: Quaternion);
        /**
         *设置世界矩阵。
        *@param value 世界矩阵。
        */
        /**
         *获取世界矩阵。
        *@return 世界矩阵。
        */
        get worldMatrix(): Matrix4x4;
        set worldMatrix(value: Matrix4x4);
        /**
         *获取世界矩阵是否需要更新。
        *@return 世界矩阵是否需要更新。
        */
        worldNeedUpdate(): boolean;
        /**
         *设置局部矩阵。
        *@param value 局部矩阵。
        */
        /**
         *获取局部矩阵。
        *@return 局部矩阵。
        */
        get localMatrix(): Matrix4x4;
        set localMatrix(value: Matrix4x4);
        /**
         *设置关联虚拟变换。
        *@param value 虚拟变换。
        */
        /**
         *获取关联虚拟变换。
        *@return 虚拟变换。
        */
        /**
         *设置局部位置。
        *@param value 局部位置。
        */
        /**
         *获取局部位置。
        *@return 局部位置。
        */
        get localPosition(): Vector3;
        set localPosition(value: Vector3);
        /**
         *设置世界位置。
        *@param value 世界位置。
        */
        /**
         *获取世界位置。
        *@return 世界位置。
        */
        get position(): Vector3;
        set position(value: Vector3);
        /**
         *设置局部缩放。
        *@param value 局部缩放。
        */
        /**
         *获取局部缩放。
        *@return 局部缩放。
        */
        get localScale(): Vector3;
        set localScale(value: Vector3);
        /**
         *设置局部空间的旋转角度。
        *@param value 欧拉角的旋转值，顺序为x、y、z。
        */
        /**
         *获取局部空间的旋转角度。
        *@return 欧拉角的旋转值，顺序为x、y、z。
        */
        get localRotationEuler(): Vector3;
        set localRotationEuler(value: Vector3);
        /**
         *设置世界旋转。
        *@param value 世界旋转。
        */
        /**
         *获取世界旋转。
        *@return 世界旋转。
        */
        get rotation(): Quaternion;
        set rotation(value: Quaternion);
        /**
         *设置世界缩放。
        *@param value 世界缩放。
        */
        /**
         *获取世界缩放。
        *@return 世界缩放。
        */
        get scale(): Vector3;
        set scale(value: Vector3);
        /**
         *设置局部空间的旋转角度。
        *@param 欧拉角的旋转值，顺序为x、y、z。
        */
        set rotationEuler(value: Vector3);
        /**
         *获取向前方向。
        *@return 向前方向。
        */
        get forward(): Vector3;
        /**
         *获取向上方向。
        *@return 向上方向。
        */
        get up(): Vector3;
        /**
         *获取向右方向。
        *@return 向右方向。
        */
        get right(): Vector3;
        /**
         *设置父3D变换。
        *@param value 父3D变换。
        */
        /**
         *获取父3D变换。
        *@return 父3D变换。
        */
        get parent(): Transform3D;
        set parent(value: Transform3D);
        static _tempVector30: Vector3;
        static _tempVector31: Vector3;
        static _tempVector32: Vector3;
        static _tempVector33: Vector3;
        static _tempQuaternion0: Quaternion;
        static _tempMatrix0: Matrix4x4;
        static _angleToRandin: number;
    }
}
declare module GYLite {
    class Vector2 {
        elements: Float32Array;
        constructor(x?: number, y?: number);
        /**
         *从Array数组拷贝值。
            *@param array 数组。
            *@param offset 数组偏移。
            */
        fromArray(array: number[], offset?: number): void;
        /**
         *克隆。
            *@param destObject 克隆源。
            */
        cloneTo(destObject: Vector2): void;
        /**
         *克隆。
            *@return 克隆副本。
            */
        clone(): Vector2;
        /**
         *获取X轴坐标。
            *@return X轴坐标。
        */
        get x(): number;
        /**
         *设置X轴坐标。
            *@param value X轴坐标。
            */
        set x(value: number);
        /**
         *获取Y轴坐标。
            *@return Y轴坐标。
        */
        get y(): number;
        /**
         *设置Y轴坐标。
            *@param value Y轴坐标。
        */
        set y(value: number);
        static scale(a: Vector2, b: number, out: Vector2): void;
        static ZERO: Vector2;
        static ONE: Vector2;
    }
}
declare namespace egret {
    class CompressedTextureData {
        glInternalFormat: number;
        width: number;
        height: number;
        byteArray: Uint8Array;
        face: number;
        level: number;
    }
    const etc_alpha_mask = "etc_alpha_mask";
    const engine_default_empty_texture = "engine_default_empty_texture";
    const is_compressed_texture = "is_compressed_texture";
    const glContext = "glContext";
    const UNPACK_PREMULTIPLY_ALPHA_WEBGL = "UNPACK_PREMULTIPLY_ALPHA_WEBGL";
    /**
     * A BitmapData object contains an array of pixel data. This data can represent either a fully opaque bitmap or a
     * transparent bitmap that contains alpha channel data. Either type of BitmapData object is stored as a buffer of 32-bit
     * integers. Each 32-bit integer determines the properties of a single pixel in the bitmap.<br/>
     * Each 32-bit integer is a combination of four 8-bit channel values (from 0 to 255) that describe the alpha transparency
     * and the red, green, and blue (ARGB) values of the pixel. (For ARGB values, the most significant byte represents the
     * alpha channel value, followed by red, green, and blue.)
     * @see egret.Bitmap
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * BitmapData 对象是一个包含像素数据的数组。此数据可以表示完全不透明的位图，或表示包含 Alpha 通道数据的透明位图。
     * 以上任一类型的 BitmapData 对象都作为 32 位整数的缓冲区进行存储。每个 32 位整数确定位图中单个像素的属性。<br/>
     * 每个 32 位整数都是四个 8 位通道值（从 0 到 255）的组合，这些值描述像素的 Alpha 透明度以及红色、绿色、蓝色 (ARGB) 值。
     * （对于 ARGB 值，最高有效字节代表 Alpha 通道值，其后的有效字节分别代表红色、绿色和蓝色通道值。）
     * @see egret.Bitmap
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class BitmapData extends HashObject {
        /**是否canvas画布资源*/
        isCanvas: boolean;
        /**
         * The width of the bitmap image in pixels.
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 位图图像的宽度，以像素为单位。
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        width: number;
        /**
         * The height of the bitmap image in pixels.
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 位图图像的高度，以像素为单位。
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        height: number;
        /**
         * Original bitmap image.
         * HTMLImageElement|HTMLCanvasElement|HTMLVideoElement
         * @version Egret 2.4
         * @platform Web,Native
         * @private
         * @language en_US
         */
        /**
         * 原始位图图像。
         * HTMLImageElement|HTMLCanvasElement|HTMLVideoElement
         * @version Egret 2.4
         * @platform Web,Native
         * @private
         * @language zh_CN
         */
        $source: any;
        /**
         * WebGL texture.
         * @version Egret 2.4
         * @platform Web,Native
         * @private
         * @language en_US
         */
        /**
         * WebGL纹理。
         * @version Egret 2.4
         * @platform Web,Native
         * @private
         * @language zh_CN
         */
        webGLTexture: any;
        /**
         * Texture format.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 纹理格式。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        format: string;
        /**
         * @private
         * webgl纹理生成后，是否删掉原始图像数据
         */
        $deleteSource: boolean;
        /**
         * @private
         * id
         */
        $nativeBitmapData: egret_native.NativeBitmapData;
        /**
         * @private
         *
         */
        readonly compressedTextureData: Array<Array<CompressedTextureData>>;
        debugCompressedTextureURL: string;
        $etcAlphaMask: Nullable<BitmapData>;
        /**
         * Initializes a BitmapData object to refer to the specified source object.
         * @param source The source object being referenced.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个引用指定 source 实例的 BitmapData 对象
         * @param source 被引用的 source 实例
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(source: any);
        get source(): any;
        set source(value: any);
        static create(type: "arraybuffer", data: ArrayBuffer, callback?: (bitmapData: BitmapData) => void): BitmapData;
        static create(type: "base64", data: string, callback?: (bitmapData: BitmapData) => void): BitmapData;
        $dispose(): void;
        private static _displayList;
        static $addDisplayObject(displayObject: DisplayObject, texture: Texture): void;
        static $removeDisplayObject(displayObject: DisplayObject, texture: Texture): void;
        static $invalidate(texture: Texture): void;
        static $dispose(texture: Texture): void;
        private _getCompressedTextureData;
        getCompressed2dTextureData(): CompressedTextureData;
        $setCompressed2dTextureData(levelData: egret.CompressedTextureData[]): void;
        hasCompressed2d(): boolean;
        clearCompressedTextureData(): void;
        set etcAlphaMask(value: any);
        get etcAlphaMask(): any;
    }
}
declare namespace egret {
    /**
     * The BitmapFillMode class defines the image fill mode of Bitmap.
     * The BitmapFillMode class defines a pattern enumeration for adjusting size. These patterns determine how Bitmap fill the size designated by the layout system.
     * @see http://edn.egret.com/cn/docs/page/134 Texture filling way
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/BitmapFillMode.ts
     * @language en_US
     */
    /**
     * BitmapFillMode 类定义Bitmap的图像填充方式。
     * BitmapFillMode 类定义了调整大小模式的一个枚举，这些模式确定 Bitmap 如何填充由布局系统指定的尺寸。
     * @see http://edn.egret.com/cn/docs/page/134 纹理的填充方式
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/BitmapFillMode.ts
     * @language zh_CN
     */
    const BitmapFillMode: {
        /**
         * Repeat the bitmap to fill area.
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 重复位图以填充区域。
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        REPEAT: string;
        /**
         * Scale bitmap fill to fill area.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 位图填充拉伸以填充区域。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        SCALE: string;
        /**
         * The bitmap ends at the edge of the region.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在区域的边缘处截断不显示位图。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        CLIP: string;
    };
}
declare namespace egret {
    /**
     * A class that provides constant values for visual blend mode effects. These constants are used in the blendMode
     * property of the DisplayObject class.
     * @see egret.DisplayObject#blendMode
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/BlendMode.ts
     * @see http://edn.egret.com/cn/docs/page/108 显示容器的概念与实现
     * @language en_US
     */
    /**
     * 提供混合模式可视效果的常量值的类,通常用于 DisplayObject 的 blendMode 属性上。
     * @see egret.DisplayObject#blendMode
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/BlendMode.ts
     * @see http://edn.egret.com/cn/docs/page/108 显示容器的概念与实现
     * @language zh_CN
     */
    class BlendMode {
        /**
         * The display object appears in front of the background. Pixel values of the display object override the pixel
         * values of the background. Where the display object is transparent, the background is visible.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 该显示对象出现在背景前面。显示对象的像素值会覆盖背景的像素值。在显示对象为透明的区域，背景是可见的。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static NORMAL: string;
        /**
         * Adds the values of the constituent colors of the display object to the colors of its background, applying a
         * ceiling of 0xFF. This setting is commonly used for animating a lightening dissolve between two objects.<br/>
         * For example, if the display object has a pixel with an RGB value of 0xAAA633, and the background pixel has an
         * RGB value of 0xDD2200, the resulting RGB value for the displayed pixel is 0xFFC833 (because 0xAA + 0xDD > 0xFF,
         * 0xA6 + 0x22 = 0xC8, and 0x33 + 0x00 = 0x33).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将显示对象的原色值添加到它的背景颜色中，上限值为 0xFF。此设置通常用于使两个对象间的加亮溶解产生动画效果。<br/>
         * 例如，如果显示对象的某个像素的 RGB 值为 0xAAA633，背景像素的 RGB 值为 0xDD2200，则显示像素的结果 RGB 值为 0xFFC833
         * （因为 0xAA + 0xDD > 0xFF，0xA6 + 0x22 = 0xC8，且 0x33 + 0x00 = 0x33）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ADD: string;
        /**
         * Erases the background based on the alpha value of the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 根据显示对象的 Alpha 值擦除背景。Alpha 值不为0的区域将被擦除。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ERASE: string;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 转换 blendMode 字符串为数字。
     */
    function blendModeToNumber(blendMode: string): number;
    /**
     * @private
     * 转换数字为 blendMode 字符串。
     */
    function numberToBlendMode(blendMode: number): string;
}
declare namespace egret {
    /**
     * The CapsStyle class is an enumeration of constant values that specify the caps style to use in drawing lines.
     * The constants are provided for use as values in the caps parameter of the egret.Graphics.lineStyle() method.
     * @see egret.Graphics#lineStyle()
     * @version Egret 2.5
     * @platform Web,Native
     * @language en_US
     */
    /**
     * CapsStyle 类是可指定在绘制线条中使用的端点样式的常量值枚举。常量可用作 egret.Graphics.lineStyle() 方法的 caps 参数中的值。
     * @see egret.Graphics#lineStyle()
     * @version Egret 2.5
     * @platform Web,Native
     * @language zh_CN
     */
    const CapsStyle: {
        /**
         * Used to specify no caps in the caps parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于在 egret.Graphics.lineStyle() 方法的 caps 参数中指定没有端点。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        NONE: string;
        /**
         * Used to specify round caps in the caps parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于在 egret.Graphics.lineStyle() 方法的 caps 参数中指定圆头端点。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        ROUND: string;
        /**
         * Used to specify square caps in the caps parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于在 egret.Graphics.lineStyle() 方法的 caps 参数中指定方头端点。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        SQUARE: string;
    };
}
declare namespace egret {
    /**
     * The GradientType class provides values for the type parameter in the beginGradientFill() methods of the egret.Graphics class.
     *
     * @see egret.Graphics#beginGradientFill()
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * GradientType 类为 egret.Graphics 类的 beginGradientFill() 方法中的 type 参数提供值。
     *
     * @see egret.Graphics#beginGradientFill()
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class GradientType {
        /**
         * Value used to specify a linear gradient fill.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于指定线性渐变填充的值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static LINEAR: string;
        /**
         * Value used to specify a radial gradient fill.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于指定放射状渐变填充的值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static RADIAL: string;
    }
}
declare namespace egret {
    /**
     * The Graphics class contains a set of methods for creating vector shape. Display objects that support drawing include Sprite and Shape objects. Each class in these classes includes the graphics attribute that is a Graphics object.
     * The following auxiliary functions are provided for ease of use: drawRect(), drawRoundRect(), drawCircle(), and drawEllipse().
     * @see http://edn.egret.com/cn/docs/page/136 Draw Rectangle
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Graphics.ts
     * @language en_US
     */
    /**
     * Graphics 类包含一组可用来创建矢量形状的方法。支持绘制的显示对象包括 Sprite 和 Shape 对象。这些类中的每一个类都包括 graphics 属性，该属性是一个 Graphics 对象。
     * 以下是为便于使用而提供的一些辅助函数：drawRect()、drawRoundRect()、drawCircle() 和 drawEllipse()。
     * @see http://edn.egret.com/cn/docs/page/136 绘制矩形
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Graphics.ts
     * @language zh_CN
     */
    class Graphics extends HashObject {
        /**
         * Initializes a Graphics object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 Graphics 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        /**
         * @private
         */
        $renderNode: sys.RenderNode;
        /**
         * 绑定到的目标显示对象
         */
        $targetDisplay: DisplayObject;
        $targetIsSprite: boolean;
        /**
         * @private
         * 设置绑定到的目标显示对象
         */
        $setTarget(target: DisplayObject): void;
        /**
         * 当前移动到的坐标X
         */
        protected lastX: number;
        /**
         * 当前移动到的坐标Y
         */
        protected lastY: number;
        /**
         * 当前正在绘制的填充
         */
        protected fillPath: sys.Path2D;
        /**
         * 当前正在绘制的线条
         */
        protected strokePath: sys.StrokePath;
        /**
         * 线条的左上方宽度
         */
        protected topLeftStrokeWidth: number;
        /**
         * 线条的右下方宽度
         */
        protected bottomRightStrokeWidth: number;
        /**
         * 对1像素和3像素特殊处理，向右下角偏移0.5像素，以显示清晰锐利的线条。
         */
        protected setStrokeWidth(width: number): void;
        /**
         * Specify a simple single color fill that will be used for subsequent calls to other Graphics methods (for example, lineTo() and drawCircle()) when drawing.
         * Calling the clear() method will clear the fill.
         * @param color Filled color
         * @param alpha Filled Alpha value
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 指定一种简单的单一颜色填充，在绘制时该填充将在随后对其他 Graphics 方法（如 lineTo() 或 drawCircle()）的调用中使用。
         * 调用 clear() 方法会清除填充。
         * @param color 填充的颜色
         * @param alpha 填充的 Alpha 值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        beginFill(color: number, alpha?: number): void;
        /**
         * Specifies a gradient fill used by subsequent calls to other Graphics methods (such as lineTo() or drawCircle()) for the object.
         * Calling the clear() method clears the fill.
         * @param type A value from the GradientType class that specifies which gradient type to use: GradientType.LINEAR or GradientType.RADIAL.
         * @param colors An array of RGB hexadecimal color values used in the gradient; for example, red is 0xFF0000, blue is 0x0000FF, and so on. You can specify up to 15 colors. For each color, specify a corresponding value in the alphas and ratios parameters.
         * @param alphas An array of alpha values for the corresponding colors in the colors array;
         * @param ratios An array of color distribution ratios; valid values are 0-255.
         * @param matrix A transformation matrix as defined by the egret.Matrix class. The egret.Matrix class includes a createGradientBox() method, which lets you conveniently set up the matrix for use with the beginGradientFill() method.
         * @platform Web,Native
         * @version Egret 2.4
         * @language en_US
         */
        /**
         * 指定一种渐变填充，用于随后调用对象的其他 Graphics 方法（如 lineTo() 或 drawCircle()）。
         * 调用 clear() 方法会清除填充。
         * @param type 用于指定要使用哪种渐变类型的 GradientType 类的值：GradientType.LINEAR 或 GradientType.RADIAL。
         * @param colors 渐变中使用的 RGB 十六进制颜色值的数组（例如，红色为 0xFF0000，蓝色为 0x0000FF，等等）。对于每种颜色，请在 alphas 和 ratios 参数中指定对应值。
         * @param alphas colors 数组中对应颜色的 alpha 值数组。
         * @param ratios 颜色分布比率的数组。有效值为 0 到 255。
         * @param matrix 一个由 egret.Matrix 类定义的转换矩阵。egret.Matrix 类包括 createGradientBox() 方法，通过该方法可以方便地设置矩阵，以便与 beginGradientFill() 方法一起使用
         * @platform Web,Native
         * @version Egret 2.4
         * @language zh_CN
         */
        beginGradientFill(type: string, colors: number[], alphas: number[], ratios: number[], matrix?: egret.Matrix): void;
        /**
         * Apply fill to the lines and curves added after the previous calling to the beginFill() method.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 对从上一次调用 beginFill()方法之后添加的直线和曲线应用填充。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        endFill(): void;
        /**
         * Specify a line style that will be used for subsequent calls to Graphics methods such as lineTo() and drawCircle().
         * @param thickness An integer, indicating the thickness of the line in points. Valid values are 0 to 255. If a number is not specified, or if the parameter is undefined, a line is not drawn. If a value less than 0 is passed, the default value is 0. Value 0 indicates hairline thickness; the maximum thickness is 255. If a value greater than 255 is passed, the default value is 255.
         * @param color A hexadecimal color value of the line (for example, red is 0xFF0000, and blue is 0x0000FF, etc.). If no value is specified, the default value is 0x000000 (black). Optional.
         * @param alpha Indicates Alpha value of the line's color. Valid values are 0 to 1. If no value is specified, the default value is 1 (solid). If the value is less than 0, the default value is 0. If the value is greater than 1, the default value is 1.
         * @param pixelHinting A boolean value that specifies whether to hint strokes to full pixels. This affects both the position of anchors of a curve and the line stroke size itself. With pixelHinting set to true, the line width is adjusted to full pixel width. With pixelHinting set to false, disjoints can appear for curves and straight lines.
         * @param scaleMode Specifies the scale mode to be used
         * @param caps Specifies the value of the CapsStyle class of the endpoint type at the end of the line. (default = CapsStyle.ROUND)
         * @param joints Specifies the type of joint appearance of corner.  (default = JointStyle.ROUND)
         * @param miterLimit Indicates the limit number of cut miter.
         * @param lineDash set the line dash.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 指定一种线条样式以用于随后对 lineTo() 或 drawCircle() 等 Graphics 方法的调用。
         * @param thickness 一个整数，以点为单位表示线条的粗细，有效值为 0 到 255。如果未指定数字，或者未定义该参数，则不绘制线条。如果传递的值小于 0，则默认值为 0。值 0 表示极细的粗细；最大粗细为 255。如果传递的值大于 255，则默认值为 255。
         * @param color 线条的十六进制颜色值（例如，红色为 0xFF0000，蓝色为 0x0000FF 等）。如果未指明值，则默认值为 0x000000（黑色）。可选。
         * @param alpha 表示线条颜色的 Alpha 值的数字；有效值为 0 到 1。如果未指明值，则默认值为 1（纯色）。如果值小于 0，则默认值为 0。如果值大于 1，则默认值为 1。
         * @param pixelHinting 布尔型值，指定是否提示笔触采用完整像素。它同时影响曲线锚点的位置以及线条笔触大小本身。在 pixelHinting 设置为 true 的情况下，线条宽度会调整到完整像素宽度。在 pixelHinting 设置为 false 的情况下，对于曲线和直线可能会出现脱节。
         * @param scaleMode 用于指定要使用的比例模式
         * @param caps 用于指定线条末端处端点类型的 CapsStyle 类的值。默认值：CapsStyle.ROUND
         * @param joints 指定用于拐角的连接外观的类型。默认值：JointStyle.ROUND
         * @param miterLimit 用于表示剪切斜接的极限值的数字。
         * @param lineDash 设置虚线样式。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        lineStyle(thickness?: number, color?: number, alpha?: number, pixelHinting?: boolean, scaleMode?: string, caps?: string, joints?: string, miterLimit?: number, lineDash?: number[]): void;
        /**
         * Draw a rectangle
         * @param x x position of the center, relative to the registration point of the parent display object (in pixels).
         * @param y y position of the center, relative to the registration point of the parent display object (in pixels).
         * @param width Width of the rectangle (in pixels).
         * @param height Height of the rectangle (in pixels).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 绘制一个矩形
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawRect(x: number, y: number, width: number, height: number): void;
        /**
         * Draw a rectangle with rounded corners.
         * @param x x position of the center, relative to the registration point of the parent display object (in pixels).
         * @param y y position of the center, relative to the registration point of the parent display object (in pixels).
         * @param width Width of the rectangle (in pixels).
         * @param height Height of the rectangle (in pixels).
         * @param ellipseWidth Width used to draw an ellipse with rounded corners (in pixels).
         * @param ellipseHeight Height used to draw an ellipse with rounded corners (in pixels). (Optional) If no value is specified, the default value matches the value of the ellipseWidth parameter.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 绘制一个圆角矩形。
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @param ellipseWidth 用于绘制圆角的椭圆的宽度（以像素为单位）。
         * @param ellipseHeight 用于绘制圆角的椭圆的高度（以像素为单位）。 （可选）如果未指定值，则默认值与为 ellipseWidth 参数提供的值相匹配。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawRoundRect(x: number, y: number, width: number, height: number, ellipseWidth: number, ellipseHeight?: number): void;
        /**
         * Draw a circle.
         * @param x x position of the center, relative to the registration point of the parent display object (in pixels).
         * @param y y position of the center, relative to the registration point of the parent display object (in pixels).
         * @param r Radius of the circle (in pixels).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 绘制一个圆。
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param radius 圆的半径（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawCircle(x: number, y: number, radius: number): void;
        /**
         * Draw an ellipse.
         * @param x A number indicating the horizontal position, relative to the registration point of the parent display object (in pixels).
         * @param y A number indicating the vertical position, relative to the registration point of the parent display object (in pixels).
         * @param width Width of the rectangle (in pixels).
         * @param height Height of the rectangle (in pixels).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 绘制一个椭圆。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawEllipse(x: number, y: number, width: number, height: number): void;
        /**
         * Move the current drawing position to (x, y). If any of these parameters is missed, calling this method will fail and the current drawing position keeps unchanged.
         * @param x A number indicating the horizontal position, relative to the registration point of the parent display object (in pixels).
         * @param y A number indicating the vertical position, relative to the registration point of the parent display object (in pixels).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将当前绘图位置移动到 (x, y)。如果缺少任何一个参数，则此方法将失败，并且当前绘图位置不改变。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        moveTo(x: number, y: number): void;
        /**
         * Draw a straight line from the current drawing position to (x, y) using the current line style; the current drawing position is then set to (x, y).
         * @param x A number indicating the horizontal position, relative to the registration point of the parent display object (in pixels).
         * @param y A number indicating the vertical position, relative to the registration point of the parent display object (in pixels).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用当前线条样式绘制一条从当前绘图位置开始到 (x, y) 结束的直线；当前绘图位置随后会设置为 (x, y)。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        lineTo(x: number, y: number): void;
        /**
         * Draw a quadratic Bezier curve from the current drawing position to (anchorX, anchorY) using the current line style according to the control points specified by (controlX, controlY). The current drawing position is then set to (anchorX, anchorY).
         * If the curveTo() method is called before the moveTo() method, the default value of the current drawing position is (0, 0). If any of these parameters is missed, calling this method will fail and the current drawing position keeps unchanged.
         * The drawn curve is a quadratic Bezier curve. A quadratic Bezier curve contains two anchor points and one control point. The curve interpolates the two anchor points and bends to the control point.
         * @param controlX A number indicating the horizontal position of the control point, relative to the registration point of the parent display object.
         * @param controlY A number indicating the vertical position of the control point, relative to the registration point of the parent display object.
         * @param anchorX A number indicating the horizontal position of the next anchor point, relative to the registration point of the parent display object.
         * @param anchorY A number indicating the vertical position of the next anchor point, relative to the registration point of the parent display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用当前线条样式和由 (controlX, controlY) 指定的控制点绘制一条从当前绘图位置开始到 (anchorX, anchorY) 结束的二次贝塞尔曲线。当前绘图位置随后设置为 (anchorX, anchorY)。
         * 如果在调用 moveTo() 方法之前调用了 curveTo() 方法，则当前绘图位置的默认值为 (0, 0)。如果缺少任何一个参数，则此方法将失败，并且当前绘图位置不改变。
         * 绘制的曲线是二次贝塞尔曲线。二次贝塞尔曲线包含两个锚点和一个控制点。该曲线内插这两个锚点，并向控制点弯曲。
         * @param controlX 一个数字，指定控制点相对于父显示对象注册点的水平位置。
         * @param controlY 一个数字，指定控制点相对于父显示对象注册点的垂直位置。
         * @param anchorX 一个数字，指定下一个锚点相对于父显示对象注册点的水平位置。
         * @param anchorY 一个数字，指定下一个锚点相对于父显示对象注册点的垂直位置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        curveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void;
        /**
         * Draws a cubic Bezier curve from the current drawing position to the specified anchor. Cubic Bezier curves consist of two anchor points and two control points. The curve interpolates the two anchor points and two control points to the curve.
         * @param controlX1 Specifies the first control point relative to the registration point of the parent display the horizontal position of the object.
         * @param controlY1 Specifies the first control point relative to the registration point of the parent display the vertical position of the object.
         * @param controlX2 Specify the second control point relative to the registration point of the parent display the horizontal position of the object.
         * @param controlY2 Specify the second control point relative to the registration point of the parent display the vertical position of the object.
         * @param anchorX Specifies the anchor point relative to the registration point of the parent display the horizontal position of the object.
         * @param anchorY Specifies the anchor point relative to the registration point of the parent display the vertical position of the object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从当前绘图位置到指定的锚点绘制一条三次贝塞尔曲线。三次贝塞尔曲线由两个锚点和两个控制点组成。该曲线内插这两个锚点，并向两个控制点弯曲。
         * @param controlX1 指定首个控制点相对于父显示对象的注册点的水平位置。
         * @param controlY1 指定首个控制点相对于父显示对象的注册点的垂直位置。
         * @param controlX2 指定第二个控制点相对于父显示对象的注册点的水平位置。
         * @param controlY2 指定第二个控制点相对于父显示对象的注册点的垂直位置。
         * @param anchorX 指定锚点相对于父显示对象的注册点的水平位置。
         * @param anchorY 指定锚点相对于父显示对象的注册点的垂直位置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        cubicCurveTo(controlX1: number, controlY1: number, controlX2: number, controlY2: number, anchorX: number, anchorY: number): void;
        /**
         * adds an arc to the path which is centered at (x, y) position with radius r starting at startAngle and ending
         * at endAngle going in the given direction by anticlockwise (defaulting to clockwise).
         * @param x The x coordinate of the arc's center.
         * @param y The y coordinate of the arc's center.
         * @param radius The arc's radius.
         * @param startAngle The angle at which the arc starts, measured clockwise from the positive x axis and expressed in radians.
         * @param endAngle The angle at which the arc ends, measured clockwise from the positive x axis and expressed in radians.
         * @param anticlockwise if true, causes the arc to be drawn counter-clockwise between the two angles. By default it is drawn clockwise.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 绘制一段圆弧路径。圆弧路径的圆心在 (x, y) 位置，半径为 r ，根据anticlockwise （默认为顺时针）指定的方向从 startAngle 开始绘制，到 endAngle 结束。
         * @param x 圆弧中心（圆心）的 x 轴坐标。
         * @param y 圆弧中心（圆心）的 y 轴坐标。
         * @param radius 圆弧的半径。
         * @param startAngle 圆弧的起始点， x轴方向开始计算，单位以弧度表示。
         * @param endAngle 圆弧的终点， 单位以弧度表示。
         * @param anticlockwise 如果为 true，逆时针绘制圆弧，反之，顺时针绘制。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        drawArc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
        protected dirty(): void;
        /**
         * @private
         * 测量圆弧的矩形大小
         */
        protected arcBounds(x: number, y: number, radius: number, startAngle: number, endAngle: number): void;
        /**
         * Clear graphics that are drawn to this Graphics object, and reset fill and line style settings.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 清除绘制到此 Graphics 对象的图形，并重置填充和线条样式设置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        clear(): void;
        /**
         * @protected
         */
        protected minX: number;
        /**
         * @protected
         */
        protected minY: number;
        /**
         * @protected
         */
        protected maxX: number;
        /**
         * @protected
         */
        protected maxY: number;
        /**
         * @protected
         */
        protected extendBoundsByPoint(x: number, y: number): void;
        /**
         * @protected
         */
        protected extendBoundsByX(x: number): void;
        /**
         * @protected
         */
        protected extendBoundsByY(y: number): void;
        /**
         * @protected
         */
        protected updateNodeBounds(): void;
        /**
         * 是否已经包含上一次moveTo的坐标点
         */
        protected includeLastPosition: boolean;
        /**
         * 更新当前的lineX和lineY值，并标记尺寸失效。
         * @protected
         */
        protected updatePosition(x: number, y: number): void;
        /**
         * @protected
         */
        $measureContentBounds(bounds: Rectangle): void;
        /**
         * @protected
         *
         */
        $hitTest(stageX: number, stageY: number): DisplayObject;
        /**
         * @protected
         */
        $onRemoveFromStage(): void;
        $onAddToStage(): void;
    }
}
declare namespace egret {
    /**
     * The JointStyle class is an enumeration of constant values that specify the joint style to use in drawing lines.
     * These constants are provided for use as values in the joints parameter of the egret.Graphics.lineStyle() method.
     * @see egret.Graphics#lineStyle()
     * @version Egret 2.5
     * @platform Web,Native
     * @language en_US
     */
    /**
     * JointStyle 类是指定要在绘制线条中使用的联接点样式的常量值枚举。提供的这些常量用作 egret.Graphics.lineStyle() 方法的 joints 参数中的值。
     * @see egret.Graphics#lineStyle()
     * @version Egret 2.5
     * @platform Web,Native
     * @language zh_CN
     */
    const JointStyle: {
        /**
         * Specifies beveled joints in the joints parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在 egret.Graphics.lineStyle() 方法的 joints 参数中指定斜角连接。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        BEVEL: string;
        /**
         * Specifies mitered joints in the joints parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在 egret.Graphics.lineStyle() 方法的 joints 参数中指定尖角连接。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        MITER: string;
        /**
         * Specifies round joints in the joints parameter of the egret.Graphics.lineStyle() method.
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在 egret.Graphics.lineStyle() 方法的 joints 参数中指定圆角连接。
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        ROUND: string;
    };
}
declare namespace egret {
    /** !!!!!!!!inspired by Babylon.js!!!!!!!!!!!!!
     * for description see https://www.khronos.org/opengles/sdk/tools/KTX/
     * for file layout see https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/
     * Current families are astc, dxt, pvrtc, etc2, & etc1.
     * @returns The extension selected.
     */
    class KTXContainer {
        arrayBuffer: any;
        private static readonly HEADER_LEN;
        private static readonly COMPRESSED_2D;
        private static readonly COMPRESSED_3D;
        private static readonly TEX_2D;
        private static readonly TEX_3D;
        /**
         * Gets the openGL type
         */
        glType: number;
        /**
         * Gets the openGL type size
         */
        glTypeSize: number;
        /**
         * Gets the openGL format
         */
        glFormat: number;
        /**
         * Gets the openGL internal format
         */
        glInternalFormat: number;
        /**
         * Gets the base internal format
         */
        glBaseInternalFormat: number;
        /**
         * Gets image width in pixel
         */
        pixelWidth: number;
        /**
         * Gets image height in pixel
         */
        pixelHeight: number;
        /**
         * Gets image depth in pixels
         */
        pixelDepth: number;
        /**
         * Gets the number of array elements
         */
        numberOfArrayElements: number;
        /**
         * Gets the number of faces
         */
        numberOfFaces: number;
        /**
         * Gets the number of mipmap levels
         */
        numberOfMipmapLevels: number;
        /**
         * Gets the bytes of key value data
         */
        bytesOfKeyValueData: number;
        /**
         * Gets the load type
         */
        loadType: number;
        /**
         * If the container has been made invalid (eg. constructor failed to correctly load array buffer)
         */
        isInvalid: boolean;
        /**
         * Creates a new KhronosTextureContainer
         * @param arrayBuffer contents of the KTX container file
         * @param facesExpected should be either 1 or 6, based whether a cube texture or or
         * @param threeDExpected provision for indicating that data should be a 3D texture, not implemented
         * @param textureArrayExpected provision for indicating that data should be a texture array, not implemented
         */
        constructor(/** contents of the KTX container file */ arrayBuffer: any, facesExpected: number, threeDExpected?: boolean, textureArrayExpected?: boolean);
        /**
         * Uploads KTX content to a Babylon Texture.
         * It is assumed that the texture has already been created & is currently bound
         * @hidden
         */
        uploadLevels(bitmapData: egret.BitmapData, loadMipmaps: boolean): void;
        private _upload2DCompressedLevels;
    }
}
declare namespace egret {
    /**
     * A Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its
     * width and its height.<br/>
     * The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of
     * one property has no effect on the others. However, the right and bottom properties are integrally related to those
     * four properties. For example, if you change the value of the right property, the value of the width property changes;
     * if you change the bottom property, the value of the height property changes.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Rectangle.ts
     * @language en_US
     */
    /**
     * Rectangle 对象是按其位置（由它左上角的点 (x, y) 确定）以及宽度和高度定义的区域。<br/>
     * Rectangle 类的 x、y、width 和 height 属性相互独立；更改一个属性的值不会影响其他属性。
     * 但是，right 和 bottom 属性与这四个属性是整体相关的。例如，如果更改 right 属性的值，则 width
     * 属性的值将发生变化；如果更改 bottom 属性，则 height 属性的值将发生变化。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Rectangle.ts
     * @language zh_CN
     */
    class Rectangle extends HashObject {
        /**
         * Releases a rectangle instance to the object pool.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放一个Rectangle实例到对象池
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static release(rect: Rectangle): void;
        /**
         * get a rectangle instance from the object pool or create a new one.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从对象池中取出或创建一个新的Rectangle对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static create(): Rectangle;
        /**
         * Creates a new Rectangle object with the top-left corner specified by the x and y parameters and with the specified
         * width and height parameters.
         * @param x The x coordinate of the top-left corner of the rectangle.
         * @param y The y coordinate of the top-left corner of the rectangle.
         * @param width The width of the rectangle, in pixels.
         * @param height The height of the rectangle, in pixels.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个新 Rectangle 对象，其左上角由 x 和 y 参数指定，并具有指定的 width 和 height 参数。
         * @param x 矩形左上角的 x 坐标。
         * @param y 矩形左上角的 y 坐标。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(x?: number, y?: number, width?: number, height?: number);
        /**
         * The x coordinate of the top-left corner of the rectangle.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形左上角的 x 坐标。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        x: number;
        /**
         * The y coordinate of the top-left corner of the rectangle.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形左上角的 y 坐标。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        y: number;
        /**
         * The width of the rectangle, in pixels.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形的宽度（以像素为单位）。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        width: number;
        /**
         * 矩形的高度（以像素为单位）。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * The height of the rectangle, in pixels.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        height: number;
        /**
         * The sum of the x and width properties.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * x 和 width 属性的和。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get right(): number;
        set right(value: number);
        /**
         * The sum of the y and height properties.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * y 和 height 属性的和。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bottom(): number;
        set bottom(value: number);
        /**
         * The x coordinate of the top-left corner of the rectangle. Changing the left property of a Rectangle object has
         * no effect on the y and height properties. However it does affect the width property, whereas changing the x value
         * does not affect the width property.
         * The value of the left property is equal to the value of the x property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形左上角的 x 坐标。更改 Rectangle 对象的 left 属性对 y 和 height 属性没有影响。但是，它会影响 width 属性，而更改 x 值不会影响 width 属性。
         * left 属性的值等于 x 属性的值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get left(): number;
        set left(value: number);
        /**
         * The y coordinate of the top-left corner of the rectangle. Changing the top property of a Rectangle object has
         * no effect on the x and width properties. However it does affect the height property, whereas changing the y
         * value does not affect the height property.<br/>
         * The value of the top property is equal to the value of the y property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 矩形左上角的 y 坐标。更改 Rectangle 对象的 top 属性对 x 和 width 属性没有影响。但是，它会影响 height 属性，而更改 y 值不会影响 height 属性。<br/>
         * top 属性的值等于 y 属性的值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get top(): number;
        set top(value: number);
        /**
         * The location of the Rectangle object's top-left corner, determined by the x and y coordinates of the point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 由该点的 x 和 y 坐标确定的 Rectangle 对象左上角的位置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get topLeft(): Point;
        set topLeft(value: Point);
        /**
         * The location of the Rectangle object's bottom-right corner, determined by the values of the right and bottom properties.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 由 right 和 bottom 属性的值确定的 Rectangle 对象的右下角的位置。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bottomRight(): Point;
        set bottomRight(value: Point);
        /**
         * Copies all of rectangle data from the source Rectangle object into the calling Rectangle object.
         * @param sourceRect The Rectangle object from which to copy the data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将源 Rectangle 对象中的所有矩形数据复制到调用方 Rectangle 对象中。
         * @param sourceRect 要从中复制数据的 Rectangle 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        copyFrom(sourceRect: Rectangle): Rectangle;
        /**
         * Sets the members of Rectangle to the specified values
         * @param x The x coordinate of the top-left corner of the rectangle.
         * @param y The y coordinate of the top-left corner of the rectangle.
         * @param width The width of the rectangle, in pixels.
         * @param height The height of the rectangle, in pixels.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 Rectangle 的成员设置为指定值
         * @param x 矩形左上角的 x 坐标。
         * @param y 矩形左上角的 y 坐标。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setTo(x: number, y: number, width: number, height: number): Rectangle;
        /**
         * Determines whether the specified point is contained within the rectangular region defined by this Rectangle object.
         * @param x The x coordinate (horizontal position) of the point.
         * @param y The y coordinate (vertical position) of the point.
         * @returns A value of true if the Rectangle object contains the specified point; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定由此 Rectangle 对象定义的矩形区域内是否包含指定的点。
         * @param x 检测点的x轴
         * @param y 检测点的y轴
         * @returns 如果检测点位于矩形内，返回true，否则，返回false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        contains(x: number, y: number): boolean;
        /**
         * If the Rectangle object specified in the toIntersect parameter intersects with this Rectangle object, returns
         * the area of intersection as a Rectangle object. If the rectangles do not intersect, this method returns an empty
         * Rectangle object with its properties set to 0.
         * @param toIntersect The Rectangle object to compare against to see if it intersects with this Rectangle object.
         * @returns A Rectangle object that equals the area of intersection. If the rectangles do not intersect, this method
         * returns an empty Rectangle object; that is, a rectangle with its x, y, width, and height properties set to 0.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果在 toIntersect 参数中指定的 Rectangle 对象与此 Rectangle 对象相交，则返回交集区域作为 Rectangle 对象。如果矩形不相交，
         * 则此方法返回一个空的 Rectangle 对象，其属性设置为 0。
         * @param toIntersect 要对照比较以查看其是否与此 Rectangle 对象相交的 Rectangle 对象。
         * @returns 等于交集区域的 Rectangle 对象。如果该矩形不相交，则此方法返回一个空的 Rectangle 对象；即，其 x、y、width 和
         * height 属性均设置为 0 的矩形。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        intersection(toIntersect: Rectangle): Rectangle;
        /**
         * Increases the size of the Rectangle object by the specified amounts, in pixels.
         * The center point of the Rectangle object stays the same, and its size increases to the left and right by the dx value, and to the top and the bottom by the dy value.
         * @param dx The value to be added to the left and the right of the Rectangle object.
         * @param dy The value to be added to the top and the bottom of the Rectangle.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 按指定量增加 Rectangle 对象的大小（以像素为单位）
         * 保持 Rectangle 对象的中心点不变，使用 dx 值横向增加它的大小，使用 dy 值纵向增加它的大小。
         * @param dx Rectangle 对象横向增加的值。
         * @param dy Rectangle 对象纵向增加的值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        inflate(dx: number, dy: number): void;
        /**
         * @private
         */
        $intersectInPlace(clipRect: Rectangle): Rectangle;
        /**
         * Determines whether the object specified in the toIntersect parameter intersects with this Rectangle object.
         * This method checks the x, y, width, and height properties of the specified Rectangle object to see if it
         * intersects with this Rectangle object.
         * @param toIntersect The Rectangle object to compare against this Rectangle object.
         * @returns A value of true if the specified object intersects with this Rectangle object; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定在 toIntersect 参数中指定的对象是否与此 Rectangle 对象相交。此方法检查指定的 Rectangle
         * 对象的 x、y、width 和 height 属性，以查看它是否与此 Rectangle 对象相交。
         * @param toIntersect 要与此 Rectangle 对象比较的 Rectangle 对象。
         * @returns 如果两个矩形相交，返回true，否则返回false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        intersects(toIntersect: Rectangle): boolean;
        /**
         * Determines whether or not this Rectangle object is empty.
         * @returns A value of true if the Rectangle object's width or height is less than or equal to 0; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定此 Rectangle 对象是否为空。
         * @returns 如果 Rectangle 对象的宽度或高度小于等于 0，则返回 true 值，否则返回 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        isEmpty(): boolean;
        /**
         * Sets all of the Rectangle object's properties to 0. A Rectangle object is empty if its width or height is less than or equal to 0.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 Rectangle 对象的所有属性设置为 0。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setEmpty(): void;
        /**
         * Returns a new Rectangle object with the same values for the x, y, width, and height properties as the original Rectangle object.
         * @returns A new Rectangle object with the same values for the x, y, width, and height properties as the original Rectangle object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回一个新的 Rectangle 对象，其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。
         * @returns 新的 Rectangle 对象，其 x、y、width 和 height 属性的值与原始 Rectangle 对象的对应值相同。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        clone(): Rectangle;
        /**
         * Determines whether the specified point is contained within the rectangular region defined by this Rectangle object.
         * This method is similar to the Rectangle.contains() method, except that it takes a Point object as a parameter.
         * @param point The point, as represented by its x and y coordinates.
         * @returns A value of true if the Rectangle object contains the specified point; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定由此 Rectangle 对象定义的矩形区域内是否包含指定的点。
         * 此方法与 Rectangle.contains() 方法类似，只不过它采用 Point 对象作为参数。
         * @param point 包含点对象
         * @returns 如果包含，返回true，否则返回false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        containsPoint(point: Point): boolean;
        /**
         * Determines whether the Rectangle object specified by the rect parameter is contained within this Rectangle object.
         * A Rectangle object is said to contain another if the second Rectangle object falls entirely within the boundaries of the first.
         * @param rect The Rectangle object being checked.
         * @returns A value of true if the Rectangle object that you specify is contained by this Rectangle object; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定此 Rectangle 对象内是否包含由 rect 参数指定的 Rectangle 对象。
         * 如果一个 Rectangle 对象完全在另一个 Rectangle 的边界内，我们说第二个 Rectangle 包含第一个 Rectangle。
         * @param rect 所检查的 Rectangle 对象
         * @returns 如果此 Rectangle 对象包含您指定的 Rectangle 对象，则返回 true 值，否则返回 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        containsRect(rect: egret.Rectangle): boolean;
        /**
         * Determines whether the object specified in the toCompare parameter is equal to this Rectangle object.
         * This method compares the x, y, width, and height properties of an object against the same properties of this Rectangle object.
         * @param The rectangle to compare to this Rectangle object.
         * @returns A value of true if the object has exactly the same values for the x, y, width, and height properties as this Rectangle object; otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定在 toCompare 参数中指定的对象是否等于此 Rectangle 对象。
         * 此方法将某个对象的 x、y、width 和 height 属性与此 Rectangle 对象所对应的相同属性进行比较。
         * @param toCompare 要与此 Rectangle 对象进行比较的矩形。
         * @returns 如果对象具有与此 Rectangle 对象完全相同的 x、y、width 和 height 属性值，则返回 true 值，否则返回 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        equals(toCompare: Rectangle): boolean;
        /**
         * Increases the size of the Rectangle object. This method is similar to the Rectangle.inflate() method except it takes a Point object as a parameter.
         * @param point 此 Point 对象的 x 属性用于增加 Rectangle 对象的水平尺寸。y 属性用于增加 Rectangle 对象的垂直尺寸。
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 增加 Rectangle 对象的大小。此方法与 Rectangle.inflate() 方法类似，只不过它采用 Point 对象作为参数。
         * @param point The x property of this Point object is used to increase the horizontal dimension of the Rectangle object. The y property is used to increase the vertical dimension of the Rectangle object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        inflatePoint(point: Point): void;
        /**
         * Adjusts the location of the Rectangle object, as determined by its top-left corner, by the specified amounts.
         * @param dx Moves the x value of the Rectangle object by this amount.
         * @param dy Moves the y value of the Rectangle object by this amount.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 按指定量调整 Rectangle 对象的位置（由其左上角确定）。
         * @param dx 将 Rectangle 对象的 x 值移动此数量。
         * @param dy 将 Rectangle 对象的 t 值移动此数量。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        offset(dx: number, dy: number): void;
        /**
         * Adjusts the location of the Rectangle object using a Point object as a parameter. This method is similar to the Rectangle.offset() method, except that it takes a Point object as a parameter.
         * @param point A Point object to use to offset this Rectangle object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 Point 对象用作参数来调整 Rectangle 对象的位置。此方法与 Rectangle.offset() 方法类似，只不过它采用 Point 对象作为参数。
         * @param point 要用于偏移此 Rectangle 对象的 Point 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        offsetPoint(point: Point): void;
        /**
         * Builds and returns a string that lists the horizontal and vertical positions and the width and height of the Rectangle object.
         * @returns A string listing the value of each of the following properties of the Rectangle object: x, y, width, and height.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 生成并返回一个字符串，该字符串列出 Rectangle 对象的水平位置和垂直位置以及高度和宽度。
         * @returns 一个字符串，它列出了 Rectangle 对象的下列各个属性的值：x、y、width 和 height。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        toString(): string;
        /**
         * Adds two rectangles together to create a new Rectangle object, by filling in the horizontal and vertical space between the two rectangles.
         * @param toUnion A Rectangle object to add to this Rectangle object.
         * @returns A new Rectangle object that is the union of the two rectangles.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 通过填充两个矩形之间的水平和垂直空间，将这两个矩形组合在一起以创建一个新的 Rectangle 对象。
         * @param toUnion 要添加到此 Rectangle 对象的 Rectangle 对象。
         * @returns 充当两个矩形的联合的新 Rectangle 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        union(toUnion: Rectangle): Rectangle;
        /**
         * @private
         */
        $getBaseWidth(angle: number): number;
        /**
         * @private
         */
        $getBaseHeight(angle: number): number;
    }
    /**
     * @private
     * 仅供框架内复用，要防止暴露引用到外部。
     */
    let $TempRectangle: Rectangle;
}
declare namespace egret {
    /**
     * @private
     */
    class Mesh extends Bitmap {
        constructor(value?: Texture);
        protected createNativeDisplayObject(): void;
        /**
         * @private
         */
        protected setBitmapDataToWasm(data?: Texture): void;
        /**
         * @private
         */
        $updateRenderNode(): void;
        /**
         * @private
         */
        private _verticesDirty;
        private _bounds;
        /**
         * @private
         */
        $updateVertices(): void;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
    }
}
declare namespace egret {
    /**
     * The ChildrenSortMode class defines a pattern enumeration for children sort mode of egret.DisplayObjectContainer.
     * @version Egret 5.2.19
     * @platform Native
     * @language en_US
     */
    /**
     * BitmapFillMode 类定义egret.DisplayObjectContainer的子项目排序方式。
     * @version Egret 5.2.19
     * @platform Native
     * @language zh_CN
     */
    const ChildrenSortMode: {
        /**
         * Default mode.
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        /**
         * 默认方式。
         * @version Egret 5.2.19
         * @platform Native
         * @language zh_CN
         */
        DEFAULT: string;
        /**
         * Y increase mode. Automatic sorted ascending by y coordinates.
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        /**
         * Y递增模式。自动按y坐标升序排序。
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        INCREASE_Y: string;
        /**
         * Y decrease mode. Automatic sorted descending by y coordinates.
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        /**
         * Y递减模式。自动按y坐标降序排序。
         * @version Egret 5.2.19
         * @platform Native
         * @language en_US
         */
        DECREASE_Y: string;
    };
}
declare namespace egret {
    /**
     * OrientationMode 类为舞台初始旋转模式提供值。
     */
    const OrientationMode: {
        /**
         * 适配屏幕
         */
        AUTO: string;
        /**
         * 默认竖屏
         */
        PORTRAIT: string;
        /**
         * 默认横屏，舞台顺时针旋转90度
         */
        LANDSCAPE: string;
        /**
         * 默认横屏，舞台逆时针旋转90度
         */
        LANDSCAPE_FLIPPED: string;
    };
}
declare namespace egret {
    /**
     * This class is used to create lightweight shapes using the drawing application program interface (API). The Shape
     * class includes a graphics property, which lets you access methods from the Graphics class.
     * @see egret.Graphics
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Shape.ts
     * @language en_US
     */
    /**
     * 此类用于使用绘图应用程序编程接口 (API) 创建简单形状。Shape 类含有 graphics 属性，通过该属性您可以访问各种矢量绘图方法。
     * @see egret.Graphics
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Shape.ts
     * @language zh_CN
     */
    class Shape extends DisplayObject {
        /**
         * Creates a new Shape object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 Shape 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        protected createNativeDisplayObject(): void;
        /**
         * @private
         */
        $graphics: Graphics;
        /**
         * Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取 Shape 中的 Graphics 对象。可通过此对象执行矢量绘图命令。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get graphics(): Graphics;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        $hitTest(stageX: number, stageY: number): DisplayObject;
        /**
         * @private
         */
        $onRemoveFromStage(): void;
    }
}
declare namespace egret {
    /**
     * SpriteSheet is a mosaic of multiple sub-bitmaps, comprising a plurality of Texture objects.
     * Each Texture object shares the set bitmap of SpriteSheet, but it points to its different areas.
     * On WebGL / OpenGL, this operation can significantly improve performance.
     * At the same time, SpriteSheet can carry out material integration easily to reduce the number of HTTP requests
     * For specification of the SpriteSheet format, see the document https://github.com/egret-labs/egret-core/wiki/Egret-SpriteSheet-Specification
     * @see http://edn.egret.com/cn/docs/page/135 The use of texture packs
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/SpriteSheet.ts
     * @language en_US
     */
    /**
     * SpriteSheet 是一张由多个子位图拼接而成的集合位图，它包含多个 Texture 对象。
     * 每一个 Texture 都共享 SpriteSheet 的集合位图，但是指向它的不同的区域。
     * 在WebGL / OpenGL上，这种做法可以显著提升性能
     * 同时，SpriteSheet可以很方便的进行素材整合，降低HTTP请求数量
     * SpriteSheet 格式的具体规范可以参见此文档  https://github.com/egret-labs/egret-core/wiki/Egret-SpriteSheet-Specification
     * @see http://edn.egret.com/cn/docs/page/135 纹理集的使用
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/SpriteSheet.ts
     * @language zh_CN
     */
    class SpriteSheet extends HashObject {
        /**
         * Create an egret.SpriteSheet object
         * @param texture {Texture} Texture
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.SpriteSheet 对象
         * @param texture {Texture} 纹理
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(texture: Texture);
        /**
         * @private
         * 表示这个SpriteSheet的位图区域在bitmapData上的起始位置x。
         */
        private _bitmapX;
        /**
         * @private
         * 表示这个SpriteSheet的位图区域在bitmapData上的起始位置y。
         */
        private _bitmapY;
        /**
         * @private
         * 共享的位图数据
         */
        $texture: Texture;
        /**
         * @private
         * 纹理缓存字典
         */
        _textureMap: MapLike<Texture>;
        /**
         * Obtain a cached Texture object according to the specified texture name
         * @param name {string} Cache the name of this Texture object
         * @returns {egret.Texture} The Texture object
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 根据指定纹理名称获取一个缓存的 Texture 对象
         * @param name {string} 缓存这个 Texture 对象所使用的名称
         * @returns {egret.Texture} Texture 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getTexture(name: string): Texture;
        /**
         * Create a new Texture object for the specified area on SpriteSheet and cache it
         * @param name {string} Cache the name of this Texture object. If the name already exists, the previous Texture object will be overwrited.
         * @param bitmapX {number} Starting coordinate x of texture area on bitmapData
         * @param bitmapY {number} Starting coordinate y of texture area on bitmapData
         * @param bitmapWidth {number} Width of texture area on bitmapData
         * @param bitmapHeight {number} Height of texture area on bitmapData
         * @param offsetX {number} Starting point x for a non-transparent area of the original bitmap
         * @param offsetY {number} Starting point y for a non-transparent area of the original bitmap
         * @param textureWidth {number} Width of the original bitmap. If it is not passed, use the bitmapWidth  value.
         * @param textureHeight {number} Height of the original bitmap. If it is not passed, use the bitmapHeight value.
         * @returns {egret.Texture} The created Texture object
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 为 SpriteSheet 上的指定区域创建一个新的 Texture 对象并缓存它
         * @param name {string} 缓存这个 Texture 对象所使用的名称，如果名称已存在，将会覆盖之前的 Texture 对象
         * @param bitmapX {number} 纹理区域在 bitmapData 上的起始坐标x
         * @param bitmapY {number} 纹理区域在 bitmapData 上的起始坐标y
         * @param bitmapWidth {number} 纹理区域在 bitmapData 上的宽度
         * @param bitmapHeight {number} 纹理区域在 bitmapData 上的高度
         * @param offsetX {number} 原始位图的非透明区域 x 起始点
         * @param offsetY {number} 原始位图的非透明区域 y 起始点
         * @param textureWidth {number} 原始位图的高度，若不传入，则使用 bitmapWidth 的值。
         * @param textureHeight {number} 原始位图的宽度，若不传入，则使用 bitmapHeight 的值。
         * @returns {egret.Texture} 创建的 Texture 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        createTexture(name: string, bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX?: number, offsetY?: number, textureWidth?: number, textureHeight?: number): Texture;
        /**
         * dispose texture
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放纹理
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        dispose(): void;
    }
}
declare namespace egret {
    /**
     * StageScaleMode class provides values for the stage zoom mode.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/player/StageScaleMode.ts
     * @language en_US
     */
    /**
     * StageScaleMode 类为舞台缩放模式提供值。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/player/StageScaleMode.ts
     * @language zh_CN
     */
    class StageScaleMode {
        /**
         * Do not scale application content. Even when you change the player viewport size, it remains unchanged. If the player is smaller than the viewport content, possibly with some cropping.<br/>
         * In this mode, the stage size (Stage.stageWidth, Stage.stageHeight) always with the player viewport size consistent.
         * @language en_US
         */
        /**
         * 不缩放应用程序内容。即使在更改播放器视口大小时，它仍然保持不变。如果播放器视口比内容小，则可能进行一些裁切。<br/>
         * 在此模式下，舞台尺寸（Stage.stageWidth,Stage.stageHeight）始终跟播放器视口大小保持一致。
         * @language zh_CN
         */
        static NO_SCALE: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling a wide directions application content to fill the viewport players on both sides in the other direction may not be wide enough and left black bars.<br/>
         * In this mode, the stage size (Stage.stageWidth, Stage.stageHeight) is always equal to the initialization incoming external application content size.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容的较宽方向填满播放器视口，另一个方向的两侧可能会不够宽而留有黑边。<br/>
         * 在此模式下，舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。
         * @language zh_CN
         */
        static SHOW_ALL: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling a narrow direction of application content to fill the viewport players on both sides in the other direction may exceed the viewport and the player is cut.<br/>
         * In this mode, the stage size (Stage.stageWidth, Stage.stageHeight) is always equal to the initialization incoming external application content size.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容的较窄方向填满播放器视口，另一个方向的两侧可能会超出播放器视口而被裁切。<br/>
         * 在此模式下，舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。
         * @language zh_CN
         */
        static NO_BORDER: string;
        /**
         * Do not keep the original aspect ratio scaling application content, after scaling application content just fill the player viewport.<br/>
         * In this mode, the stage size (Stage.stageWidth, Stage.stageHeight) is always equal to the initialization incoming external application content size.
         * @language en_US
         */
        /**
         * 不保持原始宽高比缩放应用程序内容，缩放后应用程序内容正好填满播放器视口。<br/>
         * 在此模式下，舞台尺寸(Stage.stageWidth,Stage.stageHeight)始终等于初始化时外部传入的应用程序内容尺寸。
         * @language zh_CN
         */
        static EXACT_FIT: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player, but only to keep the contents of the original application constant width, height may change.<br/>
         * In this mode, the stage width (Stage.stageWidth) is always equal to initialize external incoming application content width. Stage height (Stage.stageHeight) by the current scale with the player viewport height decision.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，但只保持应用程序内容的原始宽度不变，高度可能会改变。<br/>
         * 在此模式下，舞台宽度(Stage.stageWidth)始终等于初始化时外部传入的应用程序内容宽度。舞台高度(Stage.stageHeight)由当前的缩放比例与播放器视口高度决定。
         * @language zh_CN
         */
        static FIXED_WIDTH: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player, but only to keep the contents of the original application constant height, width may change.<br/>
         * In this mode, the stage height (Stage.stageHeight) is always equal to initialize external incoming application content height. Stage width (Stage.stageWidth) by the current scale with the player viewport width decision.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，但只保持应用程序内容的原始高度不变，宽度可能会改变。<br/>
         * 在此模式下，舞台高度(Stage.stageHeight)始终等于初始化时外部传入的应用程序内容高度。舞台宽度(Stage.stageWidth)由当前的缩放比例与播放器视口宽度决定。
         * @language zh_CN
         */
        static FIXED_HEIGHT: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player,a narrow direction may not be wide enough and fill.<br/>
         * In this mode, the stage height (Stage.stageHeight) and the stage width (Stage.stageWidth) by the current scale with the player viewport size.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，应用程序内容的较窄方向可能会不够宽而填充。<br/>
         * 在此模式下，舞台高度(Stage.stageHeight)和舞台宽度(Stage.stageWidth)由当前的缩放比例与播放器视口宽高决定。
         * @language zh_CN
         */
        static FIXED_NARROW: string;
        /**
         * Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player, a wide direction may exceed the viewport and the player is cut.<br/>
         * In this mode, the stage height (Stage.stageHeight) and the stage width (Stage.stageWidth) by the current scale with the player viewport size.
         * @language en_US
         */
        /**
         * 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，应用程序内容的较宽方向的两侧可能会超出播放器视口而被裁切。<br/>
         * 在此模式下，舞台高度(Stage.stageHeight)和舞台宽度(Stage.stageWidth)由当前的缩放比例与播放器视口宽高决定。
         * @language zh_CN
         */
        static FIXED_WIDE: string;
    }
}
declare namespace egret {
    /**
     * The Stage class represents the main drawing area.The Stage object is not globally accessible. You need to access
     * it through the stage property of a DisplayObject instance.<br/>
     * The Stage class has several ancestor classes — Sprite, DisplayObject, and EventDispatcher — from which it inherits
     * properties and methods. Many of these properties and methods are inapplicable to Stage objects.
     * @event egret.Event.RESIZE Dispatched when the stageWidth or stageHeight property of the Stage object is changed.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Stage.ts
     * @language en_US
     */
    /**
     * Stage 类代表主绘图区。
     * 可以利用 DisplayObject 实例的 stage 属性进行访问。<br/>
     * Stage 类具有多个祖代类: Sprite、DisplayObject 和 EventDispatcher，属性和方法便是从这些类继承而来的。
     * 从这些继承的许多属性和方法不适用于 Stage 对象。
     * @event egret.Event.RESIZE 当stageWidth或stageHeight属性发生改变时调度
     * @event egret.Event.DEACTIVATE 当stage失去焦点后调度
     * @event egret.Event.ACTIVATE 当stage获得焦点后调度
     *
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/display/Stage.ts
     * @language zh_CN
     */
    class Stage extends DisplayObjectContainer {
        /**
         * @private
         * Stage不许允许自行实例化
         * @version Egret 2.4
         * @platform Web,Native
         */
        constructor();
        protected createNativeDisplayObject(): void;
        /**
         * Gets and sets the frame rate of the stage. The frame rate is defined as frames per second. Valid range for the
         * frame rate is from 0.01 to 1000 frames per second.<br/>
         * Note: setting the frameRate property of one Stage object changes the frame rate for all Stage objects
         * @default 30
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取并设置舞台的帧速率。帧速率是指每秒显示的帧数。帧速率的有效范围为每秒 0.01 到 60 个帧。<br/>
         * 注意: 修改任何一个Stage的frameRate属性都会同步修改其他Stage的帧率。
         * @default 30
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get frameRate(): number;
        set frameRate(value: number);
        /**
         * @private
         */
        $stageWidth: number;
        /**
         * Indicates the width of the stage, in pixels.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 舞台的当前宽度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get stageWidth(): number;
        /**
         * @private
         */
        $stageHeight: number;
        /**
         * Indicates the height of the stage, in pixels.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 舞台的当前高度（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get stageHeight(): number;
        /**
         * After you call the invalidate() method, when the display list is next rendered, the Egret runtime sends a render
         * event to each display object that has registered to listen for the render event. You must call the invalidate()
         * method each time you want the Egret runtime to send render events.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 调用 invalidate() 方法后，在显示列表下次呈现时，Egret 会向每个已注册侦听 Event.RENDER 事件的显示对象发送一个 Event.RENDER 事件。
         * 每次您希望 Egret 发送 Event.RENDER 事件时，都必须调用 invalidate() 方法。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        invalidate(): void;
        /**
         * @deprecated
         */
        registerImplementation(interfaceName: string, instance: any): void;
        /**
         * @deprecated
         */
        getImplementation(interfaceName: string): any;
        /**
         * @private
         * 设备屏幕引用
         */
        $screen: egret.sys.Screen;
        $scaleMode: string;
        /**
         * A StageScaleMode class that specifies which scale mode to use. The following are valid values:<br/>
         * <ul>
         * <li>StageScaleMode.EXACT_FIT -- The entire application be visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur, the application may be stretched or compressed.</li>
         * <li>StageScaleMode.SHOW_ALL -- The entire application is visible in the specified area without distortion while maintaining the application of the original aspect ratio. Applications may display border.</li>
         * <li>StageScaleMode.NO_SCALE -- The size of the entire application is fixed, so that even if the size of the player window changes, it remains unchanged. If the player window is smaller than the content, it may do some trimming.</li>
         * <li>StageScaleMode.NO_BORDER -- Keep the original aspect ratio scaling application content, after scaling a narrow direction of application content to fill the viewport players on both sides in the other direction may exceed the viewport and the player is cut.</li>
         * <li>StageScaleMode.FIXED_WIDTH -- Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player, but only to keep the contents of the original application constant width, height may change.</li>
         * <li>StageScaleMode.FIXED_HEIGHT -- Keep the original aspect ratio scaling application content, after scaling application content in the horizontal and vertical directions to fill the viewport player, but only to keep the contents of the original application constant height, width may change.</li>
         * </ul>
         * @default egret.StageScaleMode.SHOW_ALL
         * @language en_US
         */
        /**
         * 一个 StageScaleMode 类中指定要使用哪种缩放模式的值。以下是有效值：<br/>
         * <ul>
         * <li>StageScaleMode.EXACT_FIT -- 整个应用程序在指定区域中可见，但不尝试保持原始高宽比。可能会发生扭曲，应用程序可能会拉伸或压缩显示。</li>
         * <li>StageScaleMode.SHOW_ALL -- 整个应用程序在指定区域中可见，且不发生扭曲，同时保持应用程序的原始高宽比。应用程序的可能会显示边框。</li>
         * <li>StageScaleMode.NO_SCALE -- 整个应用程序的大小固定，因此，即使播放器窗口的大小更改，它也会保持不变。如果播放器窗口比内容小，则可能进行一些裁切。</li>
         * <li>StageScaleMode.NO_BORDER -- 保持原始宽高比缩放应用程序内容，缩放后应用程序内容的较窄方向填满播放器视口，另一个方向的两侧可能会超出播放器视口而被裁切。</li>
         * <li>StageScaleMode.FIXED_WIDTH -- 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，但只保持应用程序内容的原始宽度不变，高度可能会改变。</li>
         * <li>StageScaleMode.FIXED_HEIGHT -- 保持原始宽高比缩放应用程序内容，缩放后应用程序内容在水平和垂直方向都填满播放器视口，但只保持应用程序内容的原始高度不变，宽度可能会改变。</li>
         * </ul>
         * @default egret.StageScaleMode.SHOW_ALL
         * @language zh_CN
         */
        get scaleMode(): string;
        set scaleMode(value: string);
        $orientation: string;
        set orientation(value: string);
        /**
         * Horizontal and vertical screen display screen, can only be set under the current Native in the configuration file. A egret.OrientationMode class that specifies which display mode to use. The following are valid values:<br/>
         * <ul>
         * <li>egret.OrientationMode.AUTO -- Always follow the direction of application display screen, always guaranteed by the look down.</li>
         * <li>egret.OrientationMode.PORTRAIT -- Applications remain portrait mode, namely horizontal screen look, the screen from left to right.</li>
         * <li>egret.OrientationMode.LANDSCAPE -- Applications remain horizontal screen mode, namely vertical screen, the screen from right to left.</li>
         * <li>egret.OrientationMode.LANDSCAPE_FLIPPED -- Applications remain horizontal screen mode, namely vertical screen, the screen from left to right.</li>
         * </ul>
         * @platform Web
         * @version 2.4
         * @language en_US
         */
        /**
         * 屏幕横竖屏显示方式，目前 Native 下只能在配置文件里设置。一个 egret.OrientationMode 类中指定要使用哪种显示方式。以下是有效值：<br/>
         * <ul>
         * <li>egret.OrientationMode.AUTO -- 应用始终跟随屏幕的方向显示，始终保证由上往下看。</li>
         * <li>egret.OrientationMode.PORTRAIT -- 应用始终保持竖屏模式，即横屏看时，屏幕由左往右看。</li>
         * <li>egret.OrientationMode.LANDSCAPE -- 应用始终保持横屏模式，即竖屏看时，屏幕显示由右往左。</li>
         * <li>egret.OrientationMode.LANDSCAPE_FLIPPED -- 应用始终保持横屏模式，即竖屏看时，屏幕显示由左往右。</li>
         * </ul>
         * @platform Web
         * @version 2.4
         * @language zh_CN
         */
        get orientation(): string;
        /**
         * Draw texture zoom ratio
         * @default 1
         * @language en_US
         */
        /**
         * 绘制纹理的缩放比率，默认值为1
         * @default 1
         * @language zh_CN
         */
        get textureScaleFactor(): number;
        set textureScaleFactor(value: number);
        $maxTouches: number;
        /**
         * Set the number of screens can simultaneously touch. Above this amount will not be triggered in response.
         * @default 99
         * @language en_US
         */
        /**
         * 设置屏幕同时可以触摸的数量。高于这个数量将不会被触发响应。
         * @default 99
         * @language zh_CN
         */
        get maxTouches(): number;
        set maxTouches(value: number);
        /**
         * Set resolution size
         * @param width width
         * @param height height
         * @version Egret 2.5.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设置分辨率尺寸
         * @param width 宽度
         * @param height 高度
         * @version Egret 2.5.5
         * @platform Web,Native
         * @language zh_CN
         */
        setContentSize(width: number, height: number): void;
        /**
         * @private
         */
        $drawToSurfaceAutoClear: () => void;
        /**
         * @private
         */
        $drawToSurface: () => void;
        /**
         * @private
         */
        $resize: (width: any, height: any) => void;
    }
}
declare namespace egret {
    /**
     * The Event class is used as the base class for the creation of Event objects, which are passed as parameters to event
     * listeners when an event occurs.The properties of the Event class carry basic information about an event, such as
     * the event's type or whether the event's default behavior can be canceled. For many events, such as the events represented
     * by the Event class constants, this basic information is sufficient. Other events, however, may require more detailed
     * information. Events associated with a touch tap, for example, need to include additional information about the
     * location of the touch event. You can pass such additional information to event listeners by extending the Event class,
     * which is what the TouchEvent class does. Egret API defines several Event subclasses for common events that require
     * additional information. Events associated with each of the Event subclasses are described in the documentation for
     * each class.The methods of the Event class can be used in event listener functions to affect the behavior of the event
     * object. Some events have an associated default behavior. Your event listener can cancel this behavior by calling the
     * preventDefault() method. You can also make the current event listener the last one to process an event by calling
     * the stopPropagation() or stopImmediatePropagation() method.
     * @see egret.EventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/Event.ts
     * @see http://edn.egret.com/cn/docs/page/798 取消触摸事件
     * @language en_US
     */
    /**
     * Event 类作为创建事件实例的基类，当发生事件时，Event 实例将作为参数传递给事件侦听器。Event 类的属性包含有关事件的基本信息，例如事件
     * 的类型或者是否可以取消事件的默认行为。对于许多事件（如由 Event 类常量表示的事件），此基本信息就足够了。但其他事件可能需要更详细的信息。
     * 例如，与触摸关联的事件需要包括有关触摸事件的位置信息。您可以通过扩展 Event 类（TouchEvent 类执行的操作）将此类其他信息传递给事件侦听器。
     * Egret API 为需要其他信息的常见事件定义多个 Event 子类。与每个 Event 子类关联的事件将在每个类的文档中加以介绍。Event 类的方法可以在
     * 事件侦听器函数中使用以影响事件对象的行为。某些事件有关联的默认行为，通过调用 preventDefault() 方法，您的事件侦听器可以取消此行为。
     * 可以通过调用 stopPropagation() 或 stopImmediatePropagation() 方法，将当前事件侦听器作为处理事件的最后一个事件侦听器。
     * @see egret.EventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/Event.ts
     * @see http://edn.egret.com/cn/docs/page/798 取消触摸事件
     * @language zh_CN
     */
    class Event extends HashObject {
        /**
         * Dispatched when a display object is added to the on stage display list, either directly or through the addition
         * of a sub tree in which the display object is contained.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在将显示对象直接添加到舞台显示列表或将包含显示对象的子树添加至舞台显示列表中时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ADDED_TO_STAGE: string;
        /**
         * Dispatched when a display object is about to be removed from the display list, either directly or through the removal
         * of a sub tree in which the display object is contained.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在从显示列表中直接删除显示对象或删除包含显示对象的子树时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static REMOVED_FROM_STAGE: string;
        /**
         * Dispatched when a display object is added to the display list.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将显示对象添加到显示列表中时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ADDED: string;
        /**
         * Dispatched when a display object is about to be removed from the display list.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将要从显示列表中删除显示对象时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static REMOVED: string;
        /**
         * [broadcast event] Dispatched when the playhead is entering a new frame.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * [广播事件] 进入新的一帧,监听此事件将会在下一帧开始时触发一次回调。这是一个广播事件，可以在任何一个显示对象上监听，无论它是否在显示列表中。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ENTER_FRAME: string;
        /**
         * Dispatched when the display list is about to be updated and rendered.
         * Note: Every time you want to receive a render event,you must call the stage.invalidate() method.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 渲染事件，监听此事件将会在本帧末即将开始渲染的前一刻触发回调，这是一个广播事件，可以在任何一个显示对象上监听，无论它是否在显示列表中。
         * 注意：每次您希望 Egret 发送 Event.RENDER 事件时，都必须调用 stage.invalidate() 方法，由于每帧只会触发一次屏幕刷新，
         * 若在 Event.RENDER 回调函数执行期间再次调用stage.invalidate()，将会被忽略。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static RENDER: string;
        /**
         * Dispatched when the size of stage or UIComponent is changed.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 舞台尺寸或UI组件尺寸发生改变
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static RESIZE: string;
        /**
         * Dispatched when the value or selection of a property is chaned.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 属性值或状态发生改变。通常是按钮的选中状态，或者列表的选中项索引改变。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static CHANGE: string;
        /**
         * Dispatched when the value or selection of a property is going to change.you can cancel this by calling the
         * preventDefault() method.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 属性值或状态即将发生改变,通常是按钮的选中状态，或者列表的选中项索引改变。可以通过调用 preventDefault() 方法阻止索引发生更改。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static CHANGING: string;
        /**
         * Dispatched when the net request is complete.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 网络请求加载完成
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static COMPLETE: string;
        /**
         * Dispatched when loop completed.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 循环完成。循环最后一次只派发 COMPLETE 事件，不派发 LOOP_COMPLETE 事件。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static LOOP_COMPLETE: string;
        /**
         * Dispatched when the TextInput instance gets focus.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * TextInput实例获得焦点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static FOCUS_IN: string;
        /**
         * Dispatched when the TextInput instance loses focus.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * TextInput实例失去焦点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static FOCUS_OUT: string;
        /**
         * Dispatched when the playback is ended.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 动画声音等播放完成
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ENDED: string;
        /**
         * 游戏激活
         * @version Egret 2.4
         * @platform Web,Native
         */
        static ACTIVATE: string;
        /**
         * 取消激活
         * @version Egret 2.4
         * @platform Web,Native
         */
        static DEACTIVATE: string;
        /**
         * Event.CLOSE 常量定义 close 事件对象的 type 属性的值。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static CLOSE: string;
        /**
         * Event.CONNECT 常量定义 connect 事件对象的 type 属性的值。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static CONNECT: string;
        /**
         * Event.LEAVE_STAGE 常量定义 leaveStage 事件对象的 type 属性的值。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static LEAVE_STAGE: string;
        /**
         * Event.SOUND_COMPLETE 常量定义 在声音完成播放后调度。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static SOUND_COMPLETE: string;
        /**
         * Creates an Event object to pass as a parameter to event listeners.
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @param data the optional data associated with this event
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个作为参数传递给事件侦听器的 Event 对象。
         * @param type  事件的类型，可以作为 Event.type 访问。
         * @param bubbles  确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @param data 与此事件对象关联的可选数据。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, data?: any);
        /**
         * the optional data associated with this event
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 与此事件对象关联的可选数据。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        data: any;
        /**
         * @private
         */
        $type: string;
        /**
         * The type of event. The type is case-sensitive.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件的类型。类型区分大小写。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get type(): string;
        /**
         * @private
         */
        $bubbles: boolean;
        /**
         * Indicates whether an event is a bubbling event.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示事件是否为冒泡事件。如果事件可以冒泡，则此值为 true；否则为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bubbles(): boolean;
        /**
         * @private
         */
        $cancelable: boolean;
        /**
         * Indicates whether the behavior associated with the event can be prevented. If the behavior can be
         * canceled, this value is true; otherwise it is false.
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示是否可以阻止与事件相关联的行为。如果可以取消该行为，则此值为 true；否则为 false。
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get cancelable(): boolean;
        /**
         * @private
         */
        $eventPhase: number;
        /**
         * The current phase in the event flow. This property can contain the following numeric values:
         * The capture phase (EventPhase.CAPTURING_PHASE).
         * The target phase (EventPhase.AT_TARGET)
         * The bubbling phase (EventPhase.BUBBLING_PHASE).
         * @see egret.EventPhase
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件流中的当前阶段。此属性可以包含以下数值：
         * 捕获阶段 (EventPhase.CAPTURING_PHASE)。
         * 目标阶段 (EventPhase.AT_TARGET)。
         * 冒泡阶段 (EventPhase.BUBBLING_PHASE)。
         * @see egret.EventPhase
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get eventPhase(): number;
        /**
         * @private
         */
        $currentTarget: any;
        /**
         * The object that is actively processing the Event object with an event listener. For example, if a
         * user clicks an OK button, the current target could be the node containing that button or one of its ancestors
         * that has registered an event listener for that event.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前正在使用某个事件侦听器处理 Event 对象的对象。例如，如果用户单击“确定”按钮，
         * 则当前目标可以是包含该按钮的节点，也可以是它的已为该事件注册了事件侦听器的始祖之一。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get currentTarget(): any;
        /**
         * @private
         */
        $target: any;
        /**
         * The event target. This property contains the target node. For example, if a user clicks an OK button,
         * the target node is the display list node containing that button.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件目标。此属性包含目标节点。例如，如果用户单击“确定”按钮，则目标节点就是包含该按钮的显示列表节点。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get target(): any;
        $setTarget(target: any): boolean;
        /**
         * @private
         */
        $isDefaultPrevented: boolean;
        /**
         * Checks whether the preventDefault() method has been called on the event. If the preventDefault() method has been
         * called, returns true; otherwise, returns false.
         * @returns If preventDefault() has been called, returns true; otherwise, returns false.
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 检查是否已对事件调用 preventDefault() 方法。
         * @returns 如果已调用 preventDefault() 方法，则返回 true；否则返回 false。
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        isDefaultPrevented(): boolean;
        /**
         * Cancels an event's default behavior if that behavior can be canceled.Many events have associated behaviors that
         * are carried out by default. For example, if a user types a character into a text input, the default behavior
         * is that the character is displayed in the text input. Because the TextEvent.TEXT_INPUT event's default behavior
         * can be canceled, you can use the preventDefault() method to prevent the character from appearing.
         * You can use the Event.cancelable property to check whether you can prevent the default behavior associated with
         * a particular event. If the value of Event.cancelable is true, then preventDefault() can be used to cancel the event;
         * otherwise, preventDefault() has no effect.
         * @see #cancelable
         * @see #isDefaultPrevented
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果可以取消事件的默认行为，则取消该行为。
         * 许多事件都有默认执行的关联行为。例如，如果用户在文本字段中键入一个字符，则默认行为就是在文本字段中显示该字符。
         * 由于可以取消 TextEvent.TEXT_INPUT 事件的默认行为，因此您可以使用 preventDefault() 方法来防止显示该字符。
         * 您可以使用 Event.cancelable 属性来检查是否可以防止与特定事件关联的默认行为。如果 Event.cancelable 的值为 true，
         * 则可以使用 preventDefault() 来取消事件；否则，preventDefault() 无效。
         * @see #cancelable
         * @see #isDefaultPrevented
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        preventDefault(): void;
        /**
         * @private
         */
        $isPropagationStopped: boolean;
        /**
         * Prevents processing of any event listeners in nodes subsequent to the current node in the event flow. This method
         * does not affect any event listeners in the current node (currentTarget). In contrast, the stopImmediatePropagation()
         * method prevents processing of event listeners in both the current node and subsequent nodes. Additional calls to this
         * method have no effect. This method can be called in any phase of the event flow.<br/>
         * Note: This method does not cancel the behavior associated with this event; see preventDefault() for that functionality.
         * @see #stopImmediatePropagation()
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影响当前节点 currentTarget 中的任何事件侦听器。
         * 相比之下，stopImmediatePropagation() 方法可以防止对当前节点中和后续节点中的事件侦听器进行处理。
         * 对此方法的其它调用没有任何效果。可以在事件流的任何阶段中调用此方法。<br/>
         * 注意：此方法不会取消与此事件相关联的行为；有关此功能的信息，请参阅 preventDefault()。
         * @see #stopImmediatePropagation()
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        stopPropagation(): void;
        /**
         * @private
         */
        $isPropagationImmediateStopped: boolean;
        /**
         * Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow.
         * This method takes effect immediately, and it affects event listeners in the current node. In contrast, the
         * stopPropagation() method doesn't take effect until all the event listeners in the current node finish processing.<br/>
         * Note: This method does not cancel the behavior associated with this event; see preventDefault() for that functionality.
         * @see #stopPropagation()
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。此方法会立即生效，并且会影响当前节点中的事件侦听器。
         * 相比之下，在当前节点中的所有事件侦听器都完成处理之前，stopPropagation() 方法不会生效。<br/>
         * 注意：此方法不会取消与此事件相关联的行为；有关此功能的信息，请参阅 preventDefault()。
         * @see #stopPropagation()
         * @see #preventDefault()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        stopImmediatePropagation(): void;
        /**
         * This method will be called automatically when you pass the event object as the parameters to the Event.release() method.
         * If your custom event is designed for reusable,you should override this method to make sure all the references to external
         * objects are cleaned. if not,it may cause memory leaking.
         * @see egret.Event.create()
         * @see egret.Event.release()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当事件实例传递给Event.release()静态方法时，实例上的clean()方法将会被自动调用。
         * 若此自定义事件的实例设计为可以循环复用的，为了避免引起内存泄露，自定义事件需要覆盖此方法来确保实例被缓存前断开对外部对象的一切引用。
         * @see egret.Event.create()
         * @see egret.Event.release()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        protected clean(): void;
        /**
         * EventDispatcher object using the specified event object thrown Event. Objects thrown objects will be cached in the pool for the next round robin.
         * @param target the event target
         * @param type The type of the event. Event listeners can access this information through the inherited type property.
         * @param bubbles Determines whether the Event object bubbles. Event listeners can access this information through
         * the inherited bubbles property.
         * @param data {any} data
         * @method egret.Event.dispatchEvent
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的 EventDispatcher 对象来抛出 Event 事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target {egret.IEventDispatcher} 派发事件目标
         * @param type {string} 事件类型
         * @param bubbles {boolean} 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param data {any} 事件data
         * @method egret.Event.dispatchEvent
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchEvent(target: IEventDispatcher, type: string, bubbles?: boolean, data?: any): boolean;
        /**
         * @private
         *
         * @param EventClass
         * @returns
         */
        static _getPropertyData(EventClass: any): any;
        /**
         * Gets one event instance from the object pool or create a new one. We highly recommend using the Event.create()
         * and Event.release() methods to create and release an event object,it can reduce the number of reallocate objects,
         * which allows you to get better code execution performance.<br/>
         * Note: If you want to use this method to initialize your custom event object,you must make sure the constructor
         * of your custom event is the same as the constructor of egret.Event.
         * @param EventClass Event Class。
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @example
         * <pre>
         *    let event = Event.create(Event,type, bubbles);
         *    event.data = data;    //optional,initializes custom data here
         *    this.dispatchEvent(event);
         *    Event.release(event);
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从对象池中取出或创建一个新的事件实例。我们建议您尽可能使用Event.create()和Event.release() 这一对方法来创建和释放事件对象，
         * 这一对方法会将事件实例在内部缓存下来供下次循环使用，减少对象的创建次数,从而获得更高的代码运行性能。<br/>
         * 注意：若使用此方法来创建自定义事件的实例，自定义的构造函数参数列表必须跟Event类一致。
         * @param EventClass Event类名。
         * @param type  事件的类型，可以作为 Event.type 访问。
         * @param bubbles  确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @example
         * <pre>
         *    let event = Event.create(Event,type, bubbles);
         *    event.data = data;  //可选，若指定义事件上需要附加其他参数，可以在获取实例后在此处设置。
         *    this.dispatchEvent(event);
         *    Event.release(event);
         * </pre>
         * @see #clean()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static create<T extends Event>(EventClass: {
            new (type: string, bubbles?: boolean, cancelable?: boolean): T;
            eventPool?: Event[];
        }, type: string, bubbles?: boolean, cancelable?: boolean): T;
        /**
         * Releases an event object and cache it into the object pool.We highly recommend using the Event.create()
         * and Event.release() methods to create and release an event object,it can reduce the number of reallocate objects,
         * which allows you to get better code execution performance.<br/>
         * Note: The parameters of this method only accepts an instance created by the Event.create() method.
         * if not,it may throw an error.
         * @example
         * <pre>
         *    let event = Event.create(Event,type, bubbles);
         *    event.data = data; //optional,initializes custom data here
         *    this.dispatchEvent(event);
         *    Event.release(event);
         * </pre>
         * @see #clean()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放一个事件对象，并缓存到对象池。我们建议您尽可能使用Event.create()和Event.release() 这一对方法来创建和释放事件对象，
         * 这一对方法会将事件实例在内部缓存下来供下次循环使用，减少对象的创建次数,从而获得更高的代码运行性能。<br/>
         * 注意：此方法只能传入由Event.create()创建的事件实例，传入非法对象实例可能会导致报错。
         * @example
         * <pre>
         *    let event = Event.create(Event,type, bubbles);
         *    event.data = data;   //可选，若指定义事件上需要附加其他参数，可以在获取实例后在此处设置。
         *    this.dispatchEvent(event);
         *    Event.release(event);
         * </pre>
         * @see #clean()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static release(event: Event): void;
    }
}
declare namespace egret {
    /**
     * The EventPhase class provides values for the eventPhase property of the Event class.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/EventPhase.ts
     * @language en_US
     */
    /**
     * EventPhase 可为 Event 类的 eventPhase 属性提供值。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/EventPhase.ts
     * @language zh_CN
     */
    const enum EventPhase {
        /**
         * The capturing phase, which is the first phase of the event flow.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 捕获阶段。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        CAPTURING_PHASE = 1,
        /**
         * The target phase, which is the second phase of the event flow.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 目标阶段，是事件流的第二个阶段。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        AT_TARGET = 2,
        /**
         * The bubbling phase, which is the third phase of the event flow.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 冒泡阶段。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        BUBBLING_PHASE = 3
    }
}
declare namespace egret {
    /**
     * When the user changes the focus from one object in the display list to another object, the object dispatches a FocusEvent object. Currently only supports input text.
     * Focus events: FocusEvent.FOCUS_IN FocusEvent.FOCUS_OUT
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 用户将焦点从显示列表中的一个对象更改到另一个对象时，对象将调度 FocusEvent 对象。目前只支持输入文本。
     * 焦点事件：FocusEvent.FOCUS_IN FocusEvent.FOCUS_OUT
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class FocusEvent extends egret.Event {
        /**
         * Gets focus
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获得焦点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static FOCUS_IN: "focusIn";
        /**
         * Loses focus
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 失去焦点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static FOCUS_OUT: "focusOut";
        /**
         * Create a egret.FocusEvent objects
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.FocusEvent 对象
         * @param type  事件的类型，可以作为 Event.type 访问。
         * @param bubbles  确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
    }
}
declare namespace egret {
    interface Geolocation {
        addEventListener<Z>(type: "ioError", listener: (this: Z, e: GeolocationEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * The GeolocationEvent represents the position and altitude of the device on Earth,
     * and show errors occurred while getting the location of the device.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/Geolocation.ts
     * @see http://edn.egret.com/cn/docs/page/662 获取位置信息
     * @language en_US
     */
    /**
     * GeolocationEvent 提供设备的地理位置信息和获取位置时发生的错误信息
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/Geolocation.ts
     * @see http://edn.egret.com/cn/docs/page/662 获取位置信息
     * @language zh_CN
     */
    class GeolocationEvent extends Event {
        /**
         * The acquisition of the location information failed because of app don't have permission.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 由于用户拒绝访问位置信息，获取位置信息失败
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static PERMISSION_DENIED: string;
        /**
         * The acquisition of the location failed because at least one internal source of position returned an internal error.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设备位置服务不可用或者超时等原因没有得到位置信息
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static UNAVAILABLE: string;
        /**
         * The position's longitude in decimal degrees.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前位置的经度信息
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        longitude: number;
        /**
         * The position's latitude in decimal degrees.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前位置的纬度信息
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        latitude: number;
        /**
         * The velocity of the device in meters per second. This value can be null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前设备的速度 单位是 米/秒，这个值可能为 null
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        speed: number;
        /**
         * The direction in which the device is traveling. This value, specified in degrees,
         * indicates how far off from heading due north the device is. 0 degrees represents
         * true true north, and the direction is determined clockwise (which means that east
         * is 90 degrees and west is 270 degrees). If speed is 0, heading is NaN. If the
         * device is unable to provide heading information, this value is null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示设备正在前进的方向，单位是度。heading 表示从正北开始顺时针旋转到当前方向的角度，
         * 比如正东是 90 度，正西是 270 度，如果 speed 是 0，heading 为 NaN。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        heading: number;
        /**
         * The position's altitude in metres, relative to sea level.
         * This value can be null if the implementation cannot provide the data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 该位置的海拔信息，如果设备没有实现这个属性时，这个值有可能为 null
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        altitude: number;
        /**
         * The accuracy of the latitude and longitude properties, expressed in meters.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 经纬度的准确性，单位是米
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        accuracy: number;
        /**
         * The accuracy of the altitude expressed in meters. This value can be null.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 该位置海拔信息的准确性，单位是米，这个值有可能为 null
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        altitudeAccuracy: number;
        /**
         * The type of error occurred while get the location of the device. The value could be:
         * @see egret.GeolocationEvent.PERMISSION_DENIED
         * @see egret.GeolocationEvent.UNAVAILABLE
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取位置信息错误时的错误类型。值可能为：
         * @see egret.GeolocationEvent.PERMISSION_DENIED
         * @see egret.GeolocationEvent.UNAVAILABLE
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        errorType: string;
        /**
         * The error message occurred while get the location of the device.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取位置信息错误的错误信息
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        errorMessage: string;
    }
}
declare namespace egret {
    /**
     * When a network request returns an HTTP status code, the application dispatches HTTPStatusEvent objects.
     * Before error or completion events will always send HTTPStatusEvent object. HTTPStatusEvent object does not necessarily indicate an error condition; it simply reflects the HTTP status code provided by the network stack (if any).
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 在网络请求返回 HTTP 状态代码时，应用程序将调度 HTTPStatusEvent 对象。
     * 在错误或完成事件之前，将始终发送 HTTPStatusEvent 对象。HTTPStatusEvent 对象不一定表示错误条件；它仅反映网络堆栈提供的 HTTP 状态代码（如果有的话）。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class HTTPStatusEvent extends Event {
        /**
         * HTTPStatusEvent.HTTP_STATUS constant defines the value of the type property httpStatus event object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * HTTPStatusEvent.HTTP_STATUS 常量定义 httpStatus 事件对象的 type 属性值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static HTTP_STATUS: "httpStatus";
        /**
         * Create a egret.HTTPStatusEvent objects
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.HTTPStatusEvent 对象
         * @param type  事件的类型，可以作为 Event.type 访问。
         * @param bubbles  确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
        /**
         * @private
         */
        private _status;
        /**
         * he server returns the HTTP status code.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 由服务器返回的 HTTP 状态代码。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get status(): number;
        /**
         * EventDispatcher object using the specified event object thrown Event. The objects will be thrown in the object cache pool for the next round robin.
         * @param target {egret.IEventDispatcher} Distribute event target
         * @param status {number} The server returns the HTTP status code
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出Event事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target {egret.IEventDispatcher} 派发事件目标
         * @param status {number} 由服务器返回的 HTTP 状态代码
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchHTTPStatusEvent(target: IEventDispatcher, status: number): boolean;
    }
}
declare namespace egret {
    /**
     * The IEventDispatcher interface defines methods for adding or removing event listeners, checks whether specific types
     * of event listeners are registered, and dispatches events. Event targets are an important part of the Egret event model.
     * The event target serves as the focal point for how events flow through the display list hierarchy. When an event
     * such as a touch tap occurs, an event object is dispatched into the event flow from the root of the display list.
     * The event object makes a round-trip journey to the event target, which is conceptually divided into three phases: <br/>
     * the capture phase includes the journey from the root to the last node before the event target's node; the target
     * phase includes only the event target node; and the bubbling phase includes any subsequent nodes encountered on the
     * return trip to the root of the display list.In general, the easiest way for a user-defined class to gain event
     * dispatching capabilities is to extend EventDispatcher. If this is impossible (that is, if the class is already
     * extending another class), you can instead implement the IEventDispatcher interface, create an EventDispatcher member,
     * and write simple hooks to route calls into the aggregated EventDispatcher.
     * @see egret.EventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/IEventDispatcher.ts
     * @language en_US
     */
    /**
     * IEventDispatcher 接口定义用于添加或删除事件侦听器的方法，检查是否已注册特定类型的事件侦听器，并调度事件。
     * 事件目标是 Egret 事件模型的重要组成部分。事件目标是事件如何通过显示列表层次结构这一问题的焦点。当发生触摸轻拍事件时，
     * 会将事件对象调度到从显示列表根开始的事件流中。事件对象进行到事件目标的往返行程，在概念上，此往返行程被划分为三个阶段：<br/>
     * 捕获阶段包括从根到事件目标节点之前的最后一个节点的行程，目标阶段仅包括事件目标节点，冒泡阶段包括到显示列表的根的回程上遇到的任何后续节点。
     * 通常，使用户定义的类能够调度事件的最简单方法是扩展 EventDispatcher。如果无法扩展（即，如果该类已经扩展了另一个类），
     * 则可以实现 IEventDispatcher 接口，创建 EventDispatcher 成员，并编写一些简单的挂钩，将调用连接到聚合的 EventDispatcher 中。
     * @see egret.EventDispatcher
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/IEventDispatcher.ts
     * @language zh_CN
     */
    interface IEventDispatcher extends HashObject {
        /**
         * Registers an event listener object with an EventDispatcher object so that the listener receives notification of an
         * event. You can register event listeners on all nodes in the display list for a specific type of event, phase,
         * and priority.After you successfully register an event listener, you cannot change its priority through additional
         * calls to on(). To change a listener's priority, you must first call removeEventListener(). Then you can register the
         * listener again with the new priority level.After the listener is registered, subsequent calls to on() with a
         * different value for either type or useCapture result in the creation of a separate listener registration. <br/>
         * When you no longer need an event listener, remove it by calling EventDispatcher.removeEventListener(); otherwise, memory
         * problems might result. Objects with registered event listeners are not automatically removed from memory because
         * the garbage collector does not remove objects that still have references.Copying an EventDispatcher instance does
         * not copy the event listeners attached to it. (If your newly created node needs an event listener, you must attach
         * the listener after creating the node.) However, if you move an EventDispatcher instance, the event listeners attached
         * to it move along with it.If the event listener is being registered on a node while an event is also being processed
         * on this node, the event listener is not triggered during the current phase but may be triggered during a later phase
         * in the event flow, such as the bubbling phase.If an event listener is removed from a node while an event is being
         * processed on the node, it is still triggered by the current actions. After it is removed, the event listener is
         * never invoked again (unless it is registered again for future processing).
         * @param type The type of event.
         * @param listener The listener function that processes the event. This function must accept an event object as
         * its only parameter and must return nothing, as this example shows: function(evt:Event):void  The function can
         * have any name.
         * @param thisObject the listener function's "this"
         * @param useCapture Determines whether the listener works in the capture phase or the bubbling phases. If useCapture
         * is set to true, the listener processes the event only during the capture phase and not in the bubbling phase.
         * If useCapture is false, the listener processes the event only during the bubbling phase. To listen for the event
         * in all three phases, call on() twice, once with useCapture set to true, then again with useCapture set to false.
         * @param  priority The priority level of the event listener. Priorities are designated by a integer. The higher
         * the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1.
         * If two or more listeners share the same priority, they are processed in the order in which they were added.
         * The default priority is
         * @see #once()
         * @see #removeEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用 EventDispatcher 对象注册事件侦听器对象，以使侦听器能够接收事件通知。可以为特定类型的事件、阶段和优先级在显示列表的所有节
         * 点上注册事件侦听器。成功注册一个事件侦听器后，无法通过额外调用 on() 来更改其优先级。要更改侦听器的优先级，必须
         * 先调用 removeEventListener()。然后，可以使用新的优先级再次注册该侦听器。注册该侦听器后，如果继续调用具有不同 type 或 useCapture
         * 值的 on()，则会创建单独的侦听器注册。<br/>
         * 如果不再需要某个事件侦听器，可调用 EventDispatcher.removeEventListener()
         * 删除它；否则会产生内存问题。由于垃圾回收器不会删除仍包含引用的对象，因此不会从内存中自动删除使用已注册事件侦听器的对象。复制
         * EventDispatcher 实例时并不复制其中附加的事件侦听器。（如果新近创建的节点需要一个事件侦听器，必须在创建该节点后附加该侦听器。）
         * 但是，如果移动 EventDispatcher 实例，则其中附加的事件侦听器也会随之移动。如果在正在处理事件的节点上注册事件侦听器，则不会在当
         * 前阶段触发事件侦听器，但会在事件流的稍后阶段触发，如冒泡阶段。如果从正在处理事件的节点中删除事件侦听器，则该事件侦听器仍由当前操
         * 作触发。删除事件侦听器后，决不会再次调用该事件侦听器（除非再次注册以备将来处理）。
         * @param type 事件的类型。
         * @param listener 处理事件的侦听器函数。此函数必须接受 Event 对象作为其唯一的参数，并且不能返回任何结果，
         * 如下面的示例所示： function(evt:Event):void 函数可以有任何名称。
         * @param thisObject 侦听函数绑定的this对象
         * @param useCapture 确定侦听器是运行于捕获阶段还是运行于冒泡阶段。如果将 useCapture 设置为 true，
         * 则侦听器只在捕获阶段处理事件，而不在冒泡阶段处理事件。如果 useCapture 为 false，则侦听器只在冒泡阶段处理事件。
         * 要在两个阶段都侦听事件，请调用 on() 两次：一次将 useCapture 设置为 true，一次将 useCapture 设置为 false。
         * @param  priority 事件侦听器的优先级。优先级由一个带符号的整数指定。数字越大，优先级越高。优先级为 n 的所有侦听器会在
         * 优先级为 n -1 的侦听器之前得到处理。如果两个或更多个侦听器共享相同的优先级，则按照它们的添加顺序进行处理。默认优先级为 0。
         * @see #once()
         * @see #removeEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void;
        /**
         * Registers an event listener object with an EventDispatcher object so that the listener receives notification of an
         * event. Different from the on() method,the listener receives notification only once,and then it will be removed
         * automatically.
         * @param type The type of event.
         * @param listener The listener function that processes the event. This function must accept an event object as
         * its only parameter and must return nothing, as this example shows: function(evt:Event):void  The function can
         * have any name.
         * @param thisObject the listener function's "this"
         * @param useCapture Determines whether the listener works in the capture phase or the bubbling phases. If useCapture
         * is set to true, the listener processes the event only during the capture phase and not in the bubbling phase.
         * If useCapture is false, the listener processes the event only during the bubbling phase. To listen for the event
         * in all three phases, call on() twice, once with useCapture set to true, then again with useCapture set to false.
         * @param  priority The priority level of the event listener. Priorities are designated by a integer. The higher
         * the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1.
         * If two or more listeners share the same priority, they are processed in the order in which they were added.
         * The default priority is
         * @see #on()
         * @see #removeEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 添加仅回调一次的事件侦听器，此方法与on()方法不同，on()方法会持续产生回调，而此方法在第一次回调时就会自动移除监听。
         * @param type 事件的类型。
         * @param listener 处理事件的侦听器函数。此函数必须接受 Event 对象作为其唯一的参数，并且不能返回任何结果，
         * 如下面的示例所示： function(evt:Event):void 函数可以有任何名称。
         * @param thisObject 侦听函数绑定的this对象
         * @param useCapture 确定侦听器是运行于捕获阶段还是运行于冒泡阶段。如果将 useCapture 设置为 true，
         * 则侦听器只在捕获阶段处理事件，而不在冒泡阶段处理事件。如果 useCapture 为 false，则侦听器只在冒泡阶段处理事件。
         * 要在两个阶段都侦听事件，请调用 once() 两次：一次将 useCapture 设置为 true，一次将 useCapture 设置为 false。
         * @param  priority 事件侦听器的优先级。优先级由一个带符号整数指定。数字越大，优先级越高。优先级为 n 的所有侦听器会在
         * 优先级为 n -1 的侦听器之前得到处理。如果两个或更多个侦听器共享相同的优先级，则按照它们的添加顺序进行处理。默认优先级为 0。
         * @see #on()
         * @see #removeEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        once(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): void;
        /**
         * Removes a listener from the EventDispatcher object. If there is no matching listener registered with the
         * EventDispatcher object, a call to this method has no effect.
         * @param type The type of event.
         * @param listener The listener object to remove.
         * @param thisObject the listener function's "this"
         * @param useCapture Specifies whether the listener was registered for the capture phase or the bubbling phases.
         * If the listener was registered for both the capture phase and the bubbling phases, two calls to removeEventListener()
         * are required to remove both: one call with useCapture set to true, and another call with useCapture set to false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从 EventDispatcher 对象中删除侦听器。如果没有向 EventDispatcher 对象注册任何匹配的侦听器，则对此方法的调用没有任何效果。
         * @param type 事件的类型。
         * @param listener 要删除的侦听器对象
         * @param thisObject 侦听函数绑定的this对象
         * @param useCapture 指出是为捕获阶段还是为冒泡阶段注册了侦听器。如果为捕获阶段以及冒泡阶段注册了侦听器，则需要对
         * removeEventListener() 进行两次调用才能将这两个侦听器删除：一次调用将 useCapture 设置为 true，另一次调用将 useCapture 设置为 false。。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        removeEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean): void;
        /**
         * Checks whether the EventDispatcher object has any listeners registered for a specific type of event. This allows
         * you to determine where an EventDispatcher object has altered handling of an event type in the event flow hierarchy.
         * To determine whether a specific event type will actually trigger an event listener, use IEventDispatcher.willTrigger().
         * The difference between hasEventListener() and willTrigger() is that hasEventListener() examines only the object to
         * which it belongs, whereas willTrigger() examines the entire event flow for the event specified by the type parameter.
         * @param type The type of event.
         * @returns A value of true if a listener of the specified type is registered; false otherwise.
         * @see #willTrigger()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。这样，您就可以确定 EventDispatcher 对象在事件流层次结构中的哪个
         * 位置改变了对事件类型的处理。要确定特定事件类型是否确实会触发事件侦听器，请使用 IEventDispatcher.willTrigger()。hasEventListener()
         * 与 willTrigger() 的区别是：hasEventListener() 只检查它所属的对象，而 willTrigger() 检查整个事件流以查找由 type 参数指定的事件。
         * @param type 事件的类型。
         * @returns 如果指定类型的侦听器已注册，则值为 true；否则，值为 false。
         * @see #willTrigger()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        hasEventListener(type: string): boolean;
        /**
         * Dispatches an event into the event flow. The event target is the EventDispatcher object upon which dispatchEvent() is called.
         * @param event The event object dispatched into the event flow.
         * @returns A value of true unless preventDefault() is called on the event, in which case it returns false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将事件分派到事件流中。事件目标是对其调用 dispatchEvent() 方法的 EventDispatcher 对象。
         * @param event 调度到事件流中的 Event 对象。
         * @returns 如果成功调度了事件，则值为 true。值 false 表示失败或对事件调用了 preventDefault()。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        dispatchEvent(event: Event): boolean;
        /**
         * Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the
         * specified event type. This method returns true if an event listener is triggered during any phase of the event
         * flow when an event of the specified type is dispatched to this EventDispatcher object or any of its descendants.
         * @param type The type of event.
         * @returns A value of true if a listener of the specified type will be triggered; false otherwise.
         * @see #hasEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 检查是否用此 EventDispatcher 对象或其任何始祖为指定事件类型注册了事件侦听器。将指定类型的事件调度给此
         * EventDispatcher 对象或其任一后代时，如果在事件流的任何阶段触发了事件侦听器，则此方法返回 true。
         * hasEventListener() 与 willTrigger() 方法的区别是：hasEventListener() 只检查它所属的对象，
         * 而 willTrigger() 方法检查整个事件流以查找由 type 参数指定的事件。
         * @param type 事件类型
         * @returns 是否注册过监听器，如果注册过返回true，反之返回false
         * @see #hasEventListener()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        willTrigger(type: string): boolean;
    }
}
declare namespace egret {
    interface HttpRequest {
        addEventListener<Z>(type: "ioError", listener: (this: Z, e: IOErrorEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * @classdesc IO流事件，当错误导致输入或输出操作失败时调度 IOErrorEvent 对象。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/IOErrorEvent.ts
     * @language en_US
     */
    /**
     * @classdesc IO流事件，当错误导致输入或输出操作失败时调度 IOErrorEvent 对象。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/IOErrorEvent.ts
     * @language zh_CN
     */
    class IOErrorEvent extends Event {
        /**
         * io error
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * io发生错误
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static IO_ERROR: "ioError";
        /**
         * Create a egret.IOErrorEvent objects
         * @param type {string} Type of event, accessible as Event.type.
         * @param bubbles {boolean} Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable {boolean} Determine whether the Event object can be canceled. The default value is false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.IOErrorEvent 对象
         * @param type {string} 事件的类型，可以作为 Event.type 访问。
         * @param bubbles {boolean} 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable {boolean} 确定是否可以取消 Event 对象。默认值为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
        /**
         * EventDispatcher object using the specified event object thrown Event. The objects will be thrown in the object cache pool for the next round robin.
         * @param target {egret.IEventDispatcher} Distribute event target
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出Event事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target {egret.IEventDispatcher} 派发事件目标
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchIOErrorEvent(target: IEventDispatcher): boolean;
    }
}
declare namespace egret {
    /**
     * MotionEvent represents the device's movement
     * Acceleration and accelerationIncludingGravity to represents the device's acceleration
     * RotationRate to represents the device's rotation
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/Motion.ts
     * @language en_US
     */
    /**
     * MotionEvent 类呈现设备运动的具体信息
     * Acceleration 和 accelerationIncludingGravity 呈现设备三个维度的加速度信息
     * RotationRate 呈现设备的旋转状态信息
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/Motion.ts
     * @language zh_CN
     */
    class MotionEvent extends Event {
        /**
         * An object giving the acceleration of the device on the three axis X, Y and Z. Acceleration is expressed in m/s2.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * acceleration 表示设备在 X Y Z 轴方将的加速度信息，单位是  m/s2，不包含重力
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        acceleration: DeviceAcceleration;
        /**
         * An object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. Acceleration is expressed in m/s2.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * acceleration 表示设备在 X Y Z 轴方将的加速度信息，单位是  m/s2，包含重力
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        accelerationIncludingGravity: DeviceAcceleration;
        /**
         * An object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. Rotation rate is express in degrees per seconds.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * rotationRate 表示设备在 alpha、 beta 和 gamma 三个轴向的角速度信息，单位是 角度每秒
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        rotationRate: DeviceRotationRate;
    }
}
declare namespace egret {
    /**
     * The OrientationEvent provides information from the physical orientation of the device.
     * Note: Currently, Browsers on the iOS and Android does not handle the coordinates the same way.
     * Take care about this while using them.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/DeviceOrientation.ts
     * @language en_US
     */
    /**
     * OrientationEvent 提供设备的方向信息
     * 注意: 目前各个浏览器和操作系统处理方向的方式不完全相同，请根据使用场景做相应的校正，
     * 比如使用两次方向数据的变化而不是直接使用方向的值
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/sensor/DeviceOrientation.ts
     * @language zh_CN
     */
    class OrientationEvent extends Event {
        /**
         * A number representing the motion of the device around the z axis,
         * express in degrees with values ranging from 0 to 360
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示设备绕 Z 轴的角度，单位是 角度 范围是 0 到 360
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        alpha: number;
        /**
         * A number representing the motion of the device around the x axis,
         * express in degrees with values ranging from -180 to 180.
         * This represents a front to back motion of the device.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示设备绕 X 轴的角度，单位是 角度 范围是 -180 到 180.
         * 这个值表示设备从前向后的旋转状态
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        beta: number;
        /**
         * A number representing the motion of the device around the y axis,
         * express in degrees with values ranging from -90 to 90.
         * This represents a left to right motion of the device.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示设备绕 Y 轴的角度，单位是 角度 范围是 -90 到 90.
         * 这个值表示设备从前向后的旋转状态
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        gamma: number;
    }
}
declare namespace egret {
    interface HttpRequest {
        addEventListener<Z>(type: "progress", listener: (this: Z, e: ProgressEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * When a load operation has begun or a socket has received data, ProgressEvent object is dispatched.
     * There are two types of progress events: ProgressEvent.PROGRESS and ProgressEvent.SOCKET_DATA.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 当加载操作已开始或套接字已接收到数据时，将调度 ProgressEvent 对象。
     * 有两种类型的进程事件：ProgressEvent.PROGRESS 和 ProgressEvent.SOCKET_DATA。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class ProgressEvent extends egret.Event {
        /**
         * Changes in the loading progress
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 加载进度发生变化
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static PROGRESS: "progress";
        /**
         * Get the data
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取到数据
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static SOCKET_DATA: "socketData";
        /**
         * Number of items or bytes when the listener processes the event。
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在侦听器处理事件时加载的项数或字节数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        bytesLoaded: number;
        /**
         * If the loading process succeeds, the total number or the total number of bytes that will be loaded term.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果加载过程成功，将加载的总项数或总字节数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        bytesTotal: number;
        /**
         * 创建一个 egret.ProgressEvent 对象
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @param bytesLoaded {number} Number of items or bytes loaded
         * @param bytesTotal {number} The total number of items or bytes loaded
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.ProgressEvent 对象
         * @param type  事件的类型，可以作为 Event.type 访问。
         * @param bubbles  确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @param bytesLoaded {number} 加载的项数或字节数
         * @param bytesTotal {number} 加载的总项数或总字节数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, bytesLoaded?: number, bytesTotal?: number);
        /**
         * EventDispatcher object using the specified event object thrown Event. The objects will be thrown in the object cache pool for the next round robin.
         * @param target {egret.IEventDispatcher} Distribute event target
         * @param type  The type of the event, accessible as Event.type.
         * @param bytesLoaded {number} Number of items or bytes loaded
         * @param bytesTotal {number} The total number of items or bytes loaded
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出Event事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target {egret.IEventDispatcher} 派发事件目标
         * @param type {string} 事件类型
         * @param bytesLoaded {number} 加载的项数或字节数
         * @param bytesTotal {number} 加载的总项数或总字节数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchProgressEvent(target: IEventDispatcher, type: string, bytesLoaded?: number, bytesTotal?: number): boolean;
    }
}
declare namespace egret {
    interface Stage {
        addEventListener<Z>(type: "orientationChange", listener: (this: Z, e: StageOrientationEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * When the direction of the stage of change, Stage object dispatches StageOrientationEvent object.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/StageOrientationEvent.ts
     * @language en_US
     */
    /**
     * 当舞台的方向更改时，Stage 对象将调度 StageOrientationEvent 对象。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/StageOrientationEvent.ts
     * @language zh_CN
     */
    class StageOrientationEvent extends Event {
        /**
         * After screen rotation distribute events.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 屏幕旋转后派发的事件。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ORIENTATION_CHANGE: "orientationChange";
        /**
         * Creating contains specific information related to the event and the stage direction of StageOrientationEvent object.
         * @param type Event types:StageOrientationEvent.ORIENTATION_CHANGE
         * @param bubbles It indicates whether the Event object participates in the bubbling stage of the event flow.
         * @param cancelable It indicates whether the Event object can be canceled.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建包含与舞台方向事件相关的特定信息的 StageOrientationEvent 对象。
         * @param type 事件的类型：StageOrientationEvent.ORIENTATION_CHANGE
         * @param bubbles 表示 Event 对象是否参与事件流的冒泡阶段。
         * @param cancelable 表示是否可以取消 Event 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
        /**
         * 派发一个屏幕旋转的事件。
         * @param target {egret.IEventDispatcher} 派发事件目标
         * @param type {egret.IEventDispatcher} 派发事件类型
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 派发一个屏幕旋转的事件。
         * @param target {egret.IEventDispatcher} Distribute event target
         * @param type {egret.IEventDispatcher} Distribute event type
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchStageOrientationEvent(target: IEventDispatcher, type: string): boolean;
    }
}
declare namespace egret {
    /**
     * When a user clicks a hyperlink rich text object dispatches TextEvent object. Text Event Type: TextEvent.LINK.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TextEvent.ts
     * @language en_US
     */
    /**
     * 用户在富文本中单击超链接时，对象将调度 TextEvent 对象。文本事件类型：TextEvent.LINK。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TextEvent.ts
     * @language zh_CN
     */
    class TextEvent extends Event {
        /**
         * TextEvent create an object that contains information about text events.
         * @param type Type of event, you can access the TextEvent.type.
         * @param bubbles Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determine whether the Event object can be canceled. The default value is false.
         * @param text One or more characters of text entered by the user. Event listeners can access this information through the text property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 TextEvent 对象，其中包含有关文本事件的信息。
         * @param type 事件的类型，可以作为 TextEvent.type 访问。
         * @param bubbles 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @param text 用户输入的一个或多个文本字符。事件侦听器可以通过 text 属性访问此信息。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, text?: string);
        /**
         * It defines the value of the type property of a link event object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 定义 link 事件对象的 type 属性值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static LINK: "link";
        /**
         * In TextEvent.LINK event, event corresponding string.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在 TextEvent.LINK 事件中，event对应的字符串。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        text: string;
        /**
         * EventDispatcher object using the specified event object thrown TextEvent. The objects will be thrown in the object cache pool for the next round robin.
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param text  Text TextEvent object assignment
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出TextEvent事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target 派发事件目标
         * @param type  事件类型
         * @param text  TextEvent对象的text赋值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchTextEvent(target: IEventDispatcher, type: string, text: string): boolean;
    }
}
declare namespace egret {
    interface Timer {
        addEventListener<Z>(type: "timer" | "timerComplete", listener: (this: Z, e: TimerEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * A Timer object dispatches a TimerEvent objects whenever the Timer object reaches the interval specified by the Timer.delay property.
     * @see egret.Timer
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TimerEvent.ts
     * @language en_US
     */
    /**
     * 每当 Timer 对象达到由 Timer.delay 属性指定的间隔时，Timer 对象即会调度 TimerEvent 对象。
     * @see egret.Timer
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TimerEvent.ts
     * @language zh_CN
     */
    class TimerEvent extends Event {
        /**
         * Dispatched whenever a Timer object reaches an interval specified according to the Timer.delay property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 每当 Timer 对象达到根据 Timer.delay 属性指定的间隔时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TIMER: "timer";
        /**
         * Dispatched whenever it has completed the number of requests set by Timer.repeatCount.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 每当它完成 Timer.repeatCount 设置的请求数后调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TIMER_COMPLETE: "timerComplete";
        /**
         * Creates an Event object with specific information relevant to timer events.
         * @param type The type of the event. Event listeners can access this information through the inherited type property.
         * @param bubbles Determines whether the Event object bubbles. Event listeners can access this information through
         * the inherited bubbles property.
         * @param cancelable Determines whether the Event object can be canceled. Event listeners can access this information
         * through the inherited cancelable property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 Event 对象，其中包含有关 timer 事件的特定信息。
         * @param type 事件的类型。事件侦听器可以通过继承的 type 属性访问此信息。
         * @param bubbles 确定 Event 对象是否冒泡。事件侦听器可以通过继承的 bubbles 属性访问此信息。
         * @param cancelable 确定是否可以取消 Event 对象。事件侦听器可以通过继承的 cancelable 属性访问此信息。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
        /**
         * Instructs Egret runtime to render after processing of this event completes, if the display list has been modified.
         * @example
         * <pre>
         *    function onTimer(event:TimerEvent):void {
         *        if (40 < mySp.x && mySp.x < 375) {
         *            mySp.x-= 50;
         *        } else {
         *            mySp.x=374;
         *        }
         *        event.updateAfterEvent();
         *    }
         *
         *    let moveTimer:Timer=new Timer(50,250);
         *    moveTimer.addEventListener(TimerEvent.TIMER,onTimer);
         *    moveTimer.start();
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果已修改显示列表，调用此方法将会忽略帧频限制，在此事件处理完成后立即重绘屏幕。
         * @example
         * <pre>
         *    function onTimer(event:TimerEvent):void {
         *        if (40 < mySp.x && mySp.x < 375) {
         *            mySp.x-= 50;
         *        } else {
         *            mySp.x=374;
         *        }
         *        event.updateAfterEvent();
         *    }
         *
         *    let moveTimer:Timer=new Timer(50,250);
         *    moveTimer.addEventListener(TimerEvent.TIMER,onTimer);
         *    moveTimer.start();
         * </pre>
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        updateAfterEvent(): void;
        /**
         * uses a specified target to dispatchEvent an event. Using this method can reduce the number of
         * reallocate event objects, which allows you to get better code execution performance.
         * @param target the event target
         * @param type The type of the event. Event listeners can access this information through the inherited type property.
         * @param bubbles Determines whether the Event object bubbles. Event listeners can access this information through
         * the inherited bubbles property.
         * @param cancelable Determines whether the Event object can be canceled. Event listeners can access this information
         * through the inherited cancelable property.
         * @see egret.Event.create()
         * @see egret.Event.release()
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target 事件派发目标
         * @param type 事件的类型。事件侦听器可以通过继承的 type 属性访问此信息。
         * @param bubbles 确定 Event 对象是否冒泡。事件侦听器可以通过继承的 bubbles 属性访问此信息。
         * @param cancelable 确定是否可以取消 Event 对象。事件侦听器可以通过继承的 cancelable 属性访问此信息。
         * @see egret.Event.create()
         * @see egret.Event.release()
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchTimerEvent(target: IEventDispatcher, type: string, bubbles?: boolean, cancelable?: boolean): boolean;
    }
}
declare namespace egret {
    /**
     * The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal
     * axis and y represents the vertical axis.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Point.ts
     * @language en_US
     */
    /**
     * Point 对象表示二维坐标系统中的某个位置，其中 x 表示水平轴，y 表示垂直轴。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Point.ts
     * @language zh_CN
     */
    class Point extends HashObject {
        /**
         * Releases a point instance to the object pool
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放一个Point实例到对象池
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static release(point: Point): void;
        /**
         * get a point instance from the object pool or create a new one.
         * @param x The horizontal coordinate.
         * @param y The vertical coordinate.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从对象池中取出或创建一个新的Point对象。
         * @param x 该对象的x属性值，默认为0
         * @param y 该对象的y属性值，默认为0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static create(x: number, y: number): Point;
        /**
         * Creates a new point. If you pass no parameters to this method, a point is created at (0,0).
         * @param x The horizontal coordinate.
         * @param y The vertical coordinate.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.Point 对象.若不传入任何参数，将会创建一个位于（0，0）位置的点。
         * @param x 该对象的x属性值，默认为0
         * @param y 该对象的y属性值，默认为0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(x?: number, y?: number);
        /**
         * The horizontal coordinate.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 该点的水平坐标。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        x: number;
        /**
         * The vertical coordinate.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 该点的垂直坐标。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        y: number;
        /**
         * The length of the line segment from (0,0) to this point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从 (0,0) 到此点的线段长度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get length(): number;
        /**
         * Sets the members of Point to the specified values
         * @param x The horizontal coordinate.
         * @param y The vertical coordinate.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 Point 的成员设置为指定值
         * @param x 该对象的x属性值
         * @param y 该对象的y属性值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setTo(x: number, y: number): Point;
        /**
         * Creates a copy of this Point object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 克隆点对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        clone(): Point;
        /**
         * Determines whether two points are equal. Two points are equal if they have the same x and y values.
         * @param toCompare The point to be compared.
         * @returns A value of true if the object is equal to this Point object; false if it is not equal.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定两个点是否相同。如果两个点具有相同的 x 和 y 值，则它们是相同的点。
         * @param toCompare 要比较的点。
         * @returns 如果该对象与此 Point 对象相同，则为 true 值，如果不相同，则为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        equals(toCompare: Point): boolean;
        /**
         * Returns the distance between pt1 and pt2.
         * @param p1 The first point.
         * @param p2 The second point.
         * @returns The distance between the first and second points.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回 pt1 和 pt2 之间的距离。
         * @param p1 第一个点
         * @param p2 第二个点
         * @returns 第一个点和第二个点之间的距离。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static distance(p1: Point, p2: Point): number;
        /**
         * Copies all of the point data from the source Point object into the calling Point object.
         * @param sourcePoint The Point object from which to copy the data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将源 Point 对象中的所有点数据复制到调用方 Point 对象中。
         * @param sourcePoint 要从中复制数据的 Point 对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        copyFrom(sourcePoint: Point): void;
        /**
         * Adds the coordinates of another point to the coordinates of this point to create a new point.
         * @param v The point to be added.
         * @returns The new point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将另一个点的坐标添加到此点的坐标以创建一个新点。
         * @param v 要添加的点。
         * @returns 新点。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        add(v: Point): Point;
        /**
         * Determines a point between two specified points.
         * The parameter f determines where the new interpolated point is located relative to the two end points specified by parameters pt1 and pt2. The closer the value of the parameter f is to 1.0, the closer the interpolated point is to the first point (parameter pt1). The closer the value of the parameter f is to 0, the closer the interpolated point is to the second point (parameter pt2).
         * @param pt1 The first point.
         * @param pt2 The second point.
         * @param f The level of interpolation between the two points. Indicates where the new point will be, along the line between pt1 and pt2. If f=1, pt1 is returned; if f=0, pt2 is returned.
         * @returns The new interpolated point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 确定两个指定点之间的点。
         * 参数 f 确定新的内插点相对于参数 pt1 和 pt2 指定的两个端点所处的位置。参数 f 的值越接近 1.0，则内插点就越接近第一个点（参数 pt1）。参数 f 的值越接近 0，则内插点就越接近第二个点（参数 pt2）。
         * @param pt1 第一个点。
         * @param pt2 第二个点。
         * @param f 两个点之间的内插级别。表示新点将位于 pt1 和 pt2 连成的直线上的什么位置。如果 f=1，则返回 pt1；如果 f=0，则返回 pt2。
         * @returns 新的内插点。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static interpolate(pt1: Point, pt2: Point, f: number): Point;
        /**
         * Scales the line segment between (0,0) and the current point to a set length.
         * @param thickness The scaling value. For example, if the current point is (0,5), and you normalize it to 1, the point returned is at (0,1).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 (0,0) 和当前点之间的线段缩放为设定的长度。
         * @param thickness 缩放值。例如，如果当前点为 (0,5) 并且您将它规范化为 1，则返回的点位于 (0,1) 处。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        normalize(thickness: number): void;
        /**
         * Offsets the Point object by the specified amount. The value of dx is added to the original value of x to create the new x value. The value of dy is added to the original value of y to create the new y value.
         * @param dx The amount by which to offset the horizontal coordinate, x.
         * @param dy The amount by which to offset the vertical coordinate, y.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 按指定量偏移 Point 对象。dx 的值将添加到 x 的原始值中以创建新的 x 值。dy 的值将添加到 y 的原始值中以创建新的 y 值。
         * @param dx 水平坐标 x 的偏移量。
         * @param dy 水平坐标 y 的偏移量。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        offset(dx: number, dy: number): void;
        /**
         * Converts a pair of polar coordinates to a Cartesian point coordinate.
         * @param len The length coordinate of the polar pair.
         * @param angle The angle, in radians, of the polar pair.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将一对极坐标转换为笛卡尔点坐标。
         * @param len 极坐标对的长度。
         * @param angle 极坐标对的角度（以弧度表示）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static polar(len: number, angle: number): Point;
        /**
         * Subtracts the coordinates of another point from the coordinates of this point to create a new point.
         * @param v The point to be subtracted.
         * @returns The new point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从此点的坐标中减去另一个点的坐标以创建一个新点。
         * @param v 要减去的点。
         * @returns 新点。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        subtract(v: Point): Point;
        /**
         * Returns a string that contains the values of the x and y coordinates. The string has the form "(x=x, y=y)", so calling the toString() method for a point at 23,17 would return "(x=23, y=17)".
         * @returns The string representation of the coordinates.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回包含 x 和 y 坐标的值的字符串。该字符串的格式为 "(x=x, y=y)"，因此为点 23,17 调用 toString() 方法将返回 "(x=23, y=17)"。
         * @returns 坐标的字符串表示形式。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        toString(): string;
    }
    /**
     * @private
     * 仅供框架内复用，要防止暴露引用到外部。
     */
    let $TempPoint: Point;
}
declare namespace egret {
    interface DisplayObject {
        addEventListener<Z>(type: "touchMove" | "touchBegin" | "touchEnd" | "touchCancel" | "touchTap" | "touchReleaseOutside" | "touchRollOut" | "touchRollOver", listener: (this: Z, e: TouchEvent) => void, thisObject: Z, useCapture?: boolean, priority?: number): any;
        addEventListener(type: string, listener: Function, thisObject: any, useCapture?: boolean, priority?: number): any;
    }
    /**
     * The TouchEvent class lets you handle events on devices that detect user contact with the device (such as a finger
     * on a touch screen).When a user interacts with a device such as a mobile phone or tablet with a touch screen, the
     * user typically touches the screen with his or her fingers or a pointing device. You can develop applications that
     * respond to basic touch events (such as a single finger tap) with the TouchEvent class. Create event listeners using
     * the event types defined in this class.
     * Note: When objects are nested on the display list, touch events target the deepest possible nested object that is
     * visible in the display list. This object is called the target node. To have a target node's ancestor (an object
     * containing the target node in the display list) receive notification of a touch event, use EventDispatcher.addEventListener()
     * on the ancestor node with the type parameter set to the specific touch event you want to detect.
     *
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TouchEvent.ts
     * @language en_US
     */
    /**
     * 使用 TouchEvent 类，您可以处理设备上那些检测用户与设备之间的接触的事件。
     * 当用户与带有触摸屏的移动电话或平板电脑等设备交互时，用户通常使用手指或指针设备接触屏幕。可使用 TouchEvent
     * 类开发响应基本触摸事件（如单个手指点击）的应用程序。使用此类中定义的事件类型创建事件侦听器。
     * 注意：当对象嵌套在显示列表中时，触摸事件的目标将是显示列表中可见的最深的可能嵌套对象。
     * 此对象称为目标节点。要使目标节点的祖代（祖代是一个包含显示列表中所有目标节点的对象，从舞台到目标节点的父节点均包括在内）
     * 接收触摸事件的通知，请对祖代节点使用 EventDispatcher.on() 并将 type 参数设置为要检测的特定触摸事件。
     *
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/events/TouchEvent.ts
     * @language zh_CN
     */
    class TouchEvent extends Event {
        /**
         * Dispatched when the user touches the device, and is continuously dispatched until the point of contact is removed.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当用户触碰设备时进行调度，而且会连续调度，直到接触点被删除。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_MOVE: "touchMove";
        /**
         * Dispatched when the user first contacts a touch-enabled device (such as touches a finger to a mobile phone or tablet with a touch screen).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当用户第一次触摸启用触摸的设备时（例如，用手指触摸配有触摸屏的移动电话或平板电脑）调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_BEGIN: "touchBegin";
        /**
         * Dispatched when the user removes contact with a touch-enabled device (such as lifts a finger off a mobile phone
         * or tablet with a touch screen).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当用户移除与启用触摸的设备的接触时（例如，将手指从配有触摸屏的移动电话或平板电脑上抬起）调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_END: "touchEnd";
        /**
         * Dispatched when an event of some kind occurred that canceled the touch.
         * Such as the eui.Scroller will dispatch 'TOUCH_CANCEL' when it start move, the 'TOUCH_END' and 'TOUCH_TAP' will not be triggered.
         * @version Egret 3.0.1
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 由于某个事件取消了触摸时触发。比如 eui.Scroller 在开始滚动后会触发 'TOUCH_CANCEL' 事件，不再触发后续的 'TOUCH_END' 和 'TOUCH_TAP' 事件
         * @version Egret 3.0.1
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_CANCEL: "touchCancel";
        /**
         * Dispatched when the user lifts the point of contact over the same DisplayObject instance on which the contact
         * was initiated on a touch-enabled device.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当用户在触摸设备上与开始触摸的同一 DisplayObject 实例上抬起接触点时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_TAP: "touchTap";
        /**
         * Dispatched when the user lifts the point of contact over the different DisplayObject instance on which the contact
         * was initiated on a touch-enabled device (such as presses and releases a finger from a single point over a display
         * object on a mobile phone or tablet with a touch screen).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当用户在触摸设备上与开始触摸的不同 DisplayObject 实例上抬起接触点时调度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOUCH_RELEASE_OUTSIDE: "touchReleaseOutside";
        /**
         * Creates an Event object that contains information about touch events.
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @param stageX The horizontal coordinate at which the event occurred in global Stage coordinates.
         * @param stageY The vertical coordinate at which the event occurred in global Stage coordinates.
         * @param touchPointID A unique identification number assigned to the touch point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 TouchEvent 对象，其中包含有关Touch事件的信息
         * @param type 事件的类型，可以作为 Event.type 访问。
         * @param bubbles 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @param stageX 事件发生点在全局舞台坐标系中的水平坐标
         * @param stageY 事件发生点在全局舞台坐标系中的垂直坐标
         * @param touchPointID 分配给触摸点的唯一标识号
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, stageX?: number, stageY?: number, touchPointID?: number);
        /**
         * @private
         */
        $initTo(stageX: number, stageY: number, touchPointID: number): void;
        /**
         * @private
         */
        $stageX: number;
        /**
         * The horizontal coordinate at which the event occurred in global Stage coordinates.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件发生点在全局舞台坐标中的水平坐标。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get stageX(): number;
        /**
         * @private
         */
        $stageY: number;
        /**
         * The vertical coordinate at which the event occurred in global Stage coordinates.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件发生点在全局舞台坐标中的垂直坐标。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get stageY(): number;
        private _localX;
        /**
         * The horizontal coordinate at which the event occurred relative to the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件发生点相对于所属显示对象的水平坐标。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get localX(): number;
        private _localY;
        /**
         * The vertical coordinate at which the event occurred relative to the display object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 事件发生点相对于所属显示对象的垂直坐标。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get localY(): number;
        private targetChanged;
        /**
         * @private
         */
        private getLocalXY;
        $setTarget(target: any): boolean;
        /**
         * A unique identification number assigned to the touch point.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 分配给触摸点的唯一标识号
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        touchPointID: number;
        /**
         * Instructs Egret runtime to render after processing of this event completes, if the display list has been modified.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果已修改显示列表，调用此方法将会忽略帧频限制，在此事件处理完成后立即重绘屏幕。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        updateAfterEvent(): void;
        /**
         * Whether the touch is pressed (true) or not pressed (false).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示触摸已按下 (true) 还是未按下 (false)。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        touchDown: boolean;
        /**
         * uses a specified target to dispatchEvent an event. Using this method can reduce the number of
         * reallocate event objects, which allows you to get better code execution performance.
         * @param target the event target
         * @param type  The type of the event, accessible as Event.type.
         * @param bubbles  Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
         * @param cancelable Determines whether the Event object can be canceled. The default values is false.
         * @param stageX The horizontal coordinate at which the event occurred in global Stage coordinates.
         * @param stageY The vertical coordinate at which the event occurred in global Stage coordinates.
         * @param touchPointID A unique identification number (as an int) assigned to the touch point.
         *
         * @see egret.Event.create()
         * @see egret.Event.release()
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的EventDispatcher对象来抛出Event事件对象。抛出的对象将会缓存在对象池上，供下次循环复用。
         * @param target 派发事件目标
         * @param type 事件的类型，可以作为 Event.type 访问。
         * @param bubbles 确定 Event 对象是否参与事件流的冒泡阶段。默认值为 false。
         * @param cancelable 确定是否可以取消 Event 对象。默认值为 false。
         * @param stageX 事件发生点在全局舞台坐标系中的水平坐标
         * @param stageY 事件发生点在全局舞台坐标系中的垂直坐标
         * @param touchPointID 分配给触摸点的唯一标识号
         *
         * @see egret.Event.create()
         * @see egret.Event.release()
         *
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static dispatchTouchEvent(target: IEventDispatcher, type: string, bubbles?: boolean, cancelable?: boolean, stageX?: number, stageY?: number, touchPointID?: number, touchDown?: boolean): boolean;
    }
}
declare namespace egret {
    /**
     * h5 and native interaction.
     * @see http://edn.egret.com/cn/article/index/id/714 Egret basic skills to communicate with Native
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/external/ExternalInterface.ts
     * @language en_US
     */
    /**
     * h5与native交互。
     * @see http://edn.egret.com/cn/article/index/id/714 Egret 与 Native 通信基本技巧
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/external/ExternalInterface.ts
     * @language zh_CN
     */
    interface ExternalInterface {
    }
    let ExternalInterface: {
        /**
         * Call functionName, and the value passed to the native.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 调用 functionName，并将value传入到native中。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        call(functionName: string, value: string): void;
        /**
         * FunctionName callback listener, you need to have to call functionName this field in native rather than such a call.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 监听 functionName 回调，需要在native中有调用 functionName 这个字段，而不是 此类的call。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        addCallback(functionName: string, listener: (value: string) => void): void;
    };
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebExternalInterface implements ExternalInterface {
        /**
         * @private
         * @param functionName
         * @param value
         */
        static call(functionName: string, value: string): void;
        /**
         * @private
         * @param functionName
         * @param listener
         */
        static addCallback(functionName: string, listener: (value: any) => void): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class NativeExternalInterface implements ExternalInterface {
        static call(functionName: string, value: string): void;
        static addCallback(functionName: string, listener: (value: any) => void): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebViewExternalInterface implements ExternalInterface {
        static call(functionName: string, value: string): void;
        static addCallback(functionName: string, listener: (value: any) => void): void;
        static invokeCallback(functionName: string, value: string): void;
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    const enum BitmapFilterQuality {
        /**
         * 定义低品质滤镜设置
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        LOW = 1,
        /**
         * 定义中等品质滤镜设置
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        MEDIUM = 2,
        /**
         * 定义高品质滤镜设置
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        HIGH = 3
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    class Filter extends HashObject {
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        type: string;
        /**
         * @private
         */
        $id: number;
        /**
         * @private
         */
        $uniforms: any;
        /**
         * @private
         */
        protected paddingTop: number;
        /**
         * @private
         */
        protected paddingBottom: number;
        /**
         * @private
         */
        protected paddingLeft: number;
        /**
         * @private
         */
        protected paddingRight: number;
        /**
         * @private
         * @native Render
         */
        $obj: any;
        constructor();
        /**
         * @private
         */
        $toJson(): string;
        protected updatePadding(): void;
        onPropertyChange(): void;
    }
}
declare namespace egret {
    /**
     * The BlurFilter class lets you apply a blur visual effect to display objects. A blur effect softens the details of an image.
     * You can produce blurs that range from a softly unfocused look to a Gaussian blur, a hazy appearance like viewing an image through semi-opaque glass.
     * @version Egret 3.0.1
     * @platform Web
     * @see http://edn.egret.com/cn/docs/page/947#模糊滤镜 模糊滤镜
     * @language en_US
     */
    /**
     * 可使用 BlurFilter 类将模糊视觉效果应用于显示对象。模糊效果可以柔化图像的细节。
     * 您可以生成一些模糊效果，范围从创建一个柔化的、未聚焦的外观到高斯模糊（就像通过半透明玻璃查看图像一样的朦胧的外观）。
     * @version Egret 3.1.0
     * @platform Web
     * @see http://edn.egret.com/cn/docs/page/947#模糊滤镜 模糊滤镜
     * @language zh_CN
     */
    class BlurFilter extends Filter {
        /**
         * Initializes a BlurFilter object.
         * @param blurX {number} The amount of horizontal blur. Valid values are 0 to 255 (floating point).
         * @param blurY {number} The amount of vertical blur. Valid values are 0 to 255 (floating point).
         * @param quality {number} The number of times to apply the filter.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 创建一个 BlurFilter 对象。
         * @param blurX {number} 水平模糊量。有效值为 0 到 255（浮点）。
         * @param blurY {number} 垂直模糊量。有效值为 0 到 255（浮点）。
         * @param quality {number} 应用滤镜的次数。暂未实现。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        constructor(blurX?: number, blurY?: number, quality?: number);
        /**
         * @private
         */
        blurXFilter: IBlurXFilter;
        /**
         * @private
         */
        blurYFilter: IBlurYFilter;
        /**
         * @private
         */
        $quality: number;
        /**
         * The amount of horizontal blur.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 水平模糊量。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        get blurX(): number;
        set blurX(value: number);
        /**
         * @private
         */
        $blurX: number;
        /**
         * The amount of vertical blur.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 垂直模糊量。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        get blurY(): number;
        set blurY(value: number);
        /**
         * @private
         */
        $blurY: number;
        /**
         * @private
         */
        $toJson(): string;
        protected updatePadding(): void;
        onPropertyChange(): void;
    }
    /**
     * @private
     */
    interface IBlurXFilter extends Filter {
        type: string;
        $uniforms: any;
        blurX: number;
    }
    /**
     * @private
     */
    interface IBlurYFilter extends Filter {
        type: string;
        $uniforms: any;
        blurY: number;
    }
}
declare namespace egret {
    /**
     * The ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the RGBA color and alpha values of every pixel in the input image to produce a result with a new set of RGBA color and alpha values.
     * It allows saturation changes, hue rotation, luminance to alpha, and various other effects.
     * @version Egret 3.1.0
     * @platform Web
     * @see http://edn.egret.com/cn/docs/page/947 颜色矩阵滤镜
     * @language en_US
     */
    /**
     * 使用 ColorMatrixFilter 类可以将 4 x 5 矩阵转换应用于输入图像上的每个像素的 RGBA 颜色和 Alpha 值，以生成具有一组新的 RGBA 颜色和 Alpha 值的结果。
     * 该类允许饱和度更改、色相旋转、亮度为 Alpha 以及各种其他效果。
     * @version Egret 3.1.0
     * @platform Web
     * @see http://edn.egret.com/cn/docs/page/947 颜色矩阵滤镜
     * @language zh_CN
     */
    class ColorMatrixFilter extends Filter {
        /**
         * @private
         */
        $matrix: number[];
        /**
         * @private
         */
        private matrix2;
        /**
         * Initializes a ColorMatrixFilter object.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 创建一个 ColorMatrixFilter 对象。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        constructor(matrix?: number[]);
        /**
         * A comma delimited list of 20 doubles that comprise a 4x5 matrix applied to the rendered element.
         * The matrix is in row major order -- that is, the first five elements are multipled by the vector [srcR,srcG,srcB,srcA,1] to determine the output red value, the second five determine the output green value, etc.
         * The value must either be an array or comma delimited string of 20 numbers.
         * @version Egret 3.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 构成应用于所呈示的元素的一个 4x5 矩阵的、以逗号分隔的 20 个双精度数的列表。
         * 矩阵以行作为主要顺序，即用第一行五个元素乘以矢量 [srcR,srcG,srcB,srcA,1] 以确定输出的红色值，用第二行的五个元素确定输出的绿色值，等等。
         * 该值必须为 20 个数字组成的数组或以逗号分隔的字符串。
         * @version Egret 3.1.0
         * @platform Web
         * @language zh_CN
         */
        get matrix(): number[];
        set matrix(value: number[]);
        /**
         * @private
         */
        private setMatrix;
        /**
         * @private
         */
        $toJson(): string;
    }
}
declare namespace egret {
    /**
     * custom filter, now support WebGL mode only.
     * @version Egret 4.1.0
     * @platform Web
     * @language en_US
     */
    /**
     * 自定义滤镜，目前仅支持WebGL模式
     * @version Egret 4.1.0
     * @platform Web
     * @language zh_CN
     */
    class CustomFilter extends Filter {
        /**
         * @private
         */
        $vertexSrc: string;
        /**
         * @private
         */
        $fragmentSrc: string;
        /**
         * @private
         */
        $shaderKey: string;
        /**
         * @private
         */
        type: string;
        private $padding;
        /**
         * The inner margin of the filter.
         * If the desired area of the custom filter is larger than the original area (stroke, etc.), you need to set it manually.
         * @version Egret 4.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 滤镜的内边距
         * 如果自定义滤镜所需区域比原区域大（描边等），需要手动设置
         * @version Egret 4.1.0
         * @platform Web
         * @language zh_CN
         */
        get padding(): number;
        set padding(value: number);
        /**
         * The initial value of the uniform in the shader (key, value one-to-one correspondence), currently only supports numbers and arrays.
         * @version Egret 4.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 着色器中uniform的初始值（key，value一一对应），目前仅支持数字和数组。
         * @version Egret 4.1.0
         * @platform Web
         * @language zh_CN
         */
        get uniforms(): any;
        /**
         * Initialize the CustomFilter object.
         * @param vertexSrc Custom vertex shader program.
         * @param fragmentSrc Custom fragment shader program.
         * @param uniforms The initial value of the uniform in the shader (key, value one-to-one correspondence), currently only supports numbers and arrays.
         * @version Egret 4.1.0
         * @platform Web
         * @language en_US
         */
        /**
         * 初始化 CustomFilter 对象
         * @param vertexSrc 自定义的顶点着色器程序。
         * @param fragmentSrc 自定义的片段着色器程序。
         * @param uniforms 着色器中uniform的初始值（key，value一一对应），目前仅支持数字和数组。
         * @version Egret 4.1.0
         * @platform Web
         * @language zh_CN
         */
        constructor(vertexSrc: string, fragmentSrc: string, uniforms?: any);
        /**
         * When native rendering acceleration is turned on, custom shaders need to be called manually when creating and updating properties
         * @version Egret 5.0.3
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 开启原生渲染加速后，自定义shader需要在创建和更新属性时手动调用
         * @version Egret 5.0.3
         * @platform Web,Native
         * @language zh_CN
         */
        onPropertyChange(): void;
    }
}
declare namespace egret {
    /**
     * @class egret.GlowFilter
     * @classdesc
     * 使用 GlowFilter 类可以对显示对象应用发光效果。在投影滤镜的 distance 和 angle 属性设置为 0 时，发光滤镜与投影滤镜极为相似。
     * @extends egret.Filter
     * @version Egret 3.1.4
     * @platform Web,Native
     */
    class GlowFilter extends Filter {
        /**
         * @private
         */
        $red: number;
        /**
         * @private
         */
        $green: number;
        /**
         * @private
         */
        $blue: number;
        /**
         * Initializes a new GlowFilter instance.
         * @method egret.GlowFilter#constructor
         * @param color {number} The color of the glow. Valid values are in the hexadecimal format 0xRRGGBB. The default value is 0xFF0000.
         * @param alpha {number} The alpha transparency value for the color. Valid values are 0 to 1. For example, .25 sets a transparency value of 25%. The default value is 1.
         * @param blurX {number} The amount of horizontal blur. Valid values are 0 to 255 (floating point).
         * @param blurY {number} The amount of vertical blur. Valid values are 0 to 255 (floating point).
         * @param strength {number} The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the glow and the background. Valid values are 0 to 255.
         * @param quality {number} The number of times to apply the filter.
         * @param inner {boolean} Specifies whether the glow is an inner glow. The value true indicates an inner glow. The default is false, an outer glow (a glow around the outer edges of the object).
         * @param knockout {number} Specifies whether the object has a knockout effect. A value of true makes the object's fill transparent and reveals the background color of the document. The default value is false (no knockout effect).
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 初始化 GlowFilter 对象
         * @method egret.GlowFilter#constructor
         * @param color {number} 光晕颜色，采用十六进制格式 0xRRGGBB。默认值为 0xFF0000。
         * @param alpha {number} 颜色的 Alpha 透明度值。有效值为 0 到 1。例如，0.25 设置透明度值为 25%。
         * @param blurX {number} 水平模糊量。有效值为 0 到 255（浮点）。
         * @param blurY {number} 垂直模糊量。有效值为 0 到 255（浮点）。
         * @param strength {number} 印记或跨页的强度。该值越高，压印的颜色越深，而且发光与背景之间的对比度也越强。有效值为 0 到 255。
         * @param quality {number} 应用滤镜的次数。暂未实现。
         * @param inner {boolean} 指定发光是否为内侧发光。值 true 指定发光是内侧发光。值 false 指定发光是外侧发光（对象外缘周围的发光）。
         * @param knockout {number} 指定对象是否具有挖空效果。值为 true 将使对象的填充变为透明，并显示文档的背景颜色。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        constructor(color?: number, alpha?: number, blurX?: number, blurY?: number, strength?: number, quality?: number, inner?: boolean, knockout?: boolean);
        /**
         * @private
         */
        $color: number;
        /**
         * The color of the glow.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 光晕颜色。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get color(): number;
        set color(value: number);
        /**
         * @private
         */
        $alpha: number;
        /**
         * The alpha transparency value for the color.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 颜色的 Alpha 透明度值。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get alpha(): number;
        set alpha(value: number);
        /**
         * @private
         */
        $blurX: number;
        /**
         * The amount of horizontal blur.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 水平模糊量。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get blurX(): number;
        set blurX(value: number);
        /**
         * @private
         */
        $blurY: number;
        /**
         * The amount of vertical blur.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 垂直模糊量。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get blurY(): number;
        set blurY(value: number);
        /**
         * @private
         */
        $strength: number;
        /**
         * The strength of the imprint or spread.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 印记或跨页的强度。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get strength(): number;
        set strength(value: number);
        /**
         * @private
         */
        $quality: number;
        /**
         * The number of times to apply the filter.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 应用滤镜的次数。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get quality(): number;
        set quality(value: number);
        /**
         * @private
         */
        $inner: boolean;
        /**
         * Specifies whether the glow is an inner glow.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 指定发光是否为内侧发光。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get inner(): boolean;
        set inner(value: boolean);
        /**
         * @private
         */
        $knockout: boolean;
        /**
         * Specifies whether the object has a knockout effect.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 指定对象是否具有挖空效果。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get knockout(): boolean;
        set knockout(value: boolean);
        /**
         * @private
         */
        $toJson(): string;
        protected updatePadding(): void;
    }
}
declare namespace egret {
    /**
     * @class egret.DropShadowFilter
     * @classdesc
     * 可使用 DropShadowFilter 类向显示对象添加投影。
     * @extends egret.GlowFilter
     * @version Egret 3.1.4
     * @platform Web,Native
     */
    class DropShadowFilter extends GlowFilter {
        /**
         * Initializes a new DropShadowFilter instance.
         * @method egret.DropShadowFilter#constructor
         * @param distance {number} The offset distance of the bevel. Valid values are in pixels (floating point).
         * @param angle {number} The angle of the bevel. Valid values are from 0 to 360°.
         * @param color {number} The color of the glow. Valid values are in the hexadecimal format 0xRRGGBB. The default value is 0xFF0000.
         * @param alpha {number} The alpha transparency value for the color. Valid values are 0 to 1. For example, .25 sets a transparency value of 25%. The default value is 1.
         * @param blurX {number} The amount of horizontal blur. Valid values are 0 to 255 (floating point).
         * @param blurY {number} The amount of vertical blur. Valid values are 0 to 255 (floating point).
         * @param strength {number} The strength of the imprint or spread. The higher the value, the more color is imprinted and the stronger the contrast between the glow and the background. Valid values are 0 to 255.
         * @param quality {number} The number of times to apply the filter.
         * @param inner {boolean} Specifies whether the glow is an inner glow. The value true indicates an inner glow. The default is false, an outer glow (a glow around the outer edges of the object).
         * @param knockout {number} Specifies whether the object has a knockout effect. A value of true makes the object's fill transparent and reveals the background color of the document. The default value is false (no knockout effect).
         * @param hideObject {number} Indicates whether or not the object is hidden. The value true indicates that the object itself is not drawn; only the shadow is visible. The default is false, meaning that the object is shown.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 初始化 DropShadowFilter 对象
         * @method egret.DropShadowFilter#constructor
         * @param distance {number} 阴影的偏移距离，以像素为单位。
         * @param angle {number} 阴影的角度，0 到 360 度（浮点）。
         * @param color {number} 光晕颜色，采用十六进制格式 0xRRGGBB。默认值为 0xFF0000。
         * @param alpha {number} 颜色的 Alpha 透明度值。有效值为 0 到 1。例如，0.25 设置透明度值为 25%。
         * @param blurX {number} 水平模糊量。有效值为 0 到 255（浮点）。
         * @param blurY {number} 垂直模糊量。有效值为 0 到 255（浮点）。
         * @param strength {number} 印记或跨页的强度。该值越高，压印的颜色越深，而且发光与背景之间的对比度也越强。有效值为 0 到 255。
         * @param quality {number} 应用滤镜的次数。暂未实现。
         * @param inner {boolean} 指定发光是否为内侧发光。值 true 指定发光是内侧发光。值 false 指定发光是外侧发光（对象外缘周围的发光）。
         * @param knockout {number} 指定对象是否具有挖空效果。值为 true 将使对象的填充变为透明，并显示文档的背景颜色。
         * @param hideObject {number} 表示是否隐藏对象。如果值为 true，则表示没有绘制对象本身，只有阴影是可见的。默认值为 false（显示对象）。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        constructor(distance?: number, angle?: number, color?: number, alpha?: number, blurX?: number, blurY?: number, strength?: number, quality?: number, inner?: boolean, knockout?: boolean, hideObject?: boolean);
        /**
         * @private
         */
        $distance: number;
        /**
         * The offset distance of the bevel.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 阴影的偏移距离，以像素为单位。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get distance(): number;
        set distance(value: number);
        /**
         * @private
         */
        $angle: number;
        /**
         * The angle of the bevel.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 阴影的角度。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get angle(): number;
        set angle(value: number);
        /**
         * @private
         */
        $hideObject: boolean;
        /**
         * Indicates whether or not the object is hidden.
         * @version Egret 3.1.4
         * @platform Web
         * @language en_US
         */
        /**
         * 表示是否隐藏对象。
         * @version Egret 3.1.4
         * @platform Web
         * @language zh_CN
         */
        get hideObject(): boolean;
        set hideObject(value: boolean);
        /**
         * @private
         */
        $toJson(): string;
        protected updatePadding(): void;
    }
}
declare namespace egret {
    /**
     * The Matrix class represents a transformation matrix that determines how to map points from one coordinate space to
     * another. You can perform various graphical transformations on a display object by setting the properties of a Matrix
     * object, applying that Matrix object to the matrix property of a display object, These transformation functions include
     * translation (x and y repositioning), rotation, scaling, and skewing.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Matrix.ts
     * @language en_US
     */
    /**
     * Matrix 类表示一个转换矩阵，它确定如何将点从一个坐标空间映射到另一个坐标空间。
     * 您可以对一个显示对象执行不同的图形转换，方法是设置 Matrix 对象的属性，将该 Matrix
     * 对象应用于显示对象的 matrix 属性。这些转换函数包括平移（x 和 y 重新定位）、旋转、缩放和倾斜。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/geom/Matrix.ts
     * @language zh_CN
     */
    class Matrix extends HashObject {
        /**
         * Releases a matrix instance to the object pool
         * @param matrix matrix that Needs to be recycled
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 释放一个Matrix实例到对象池
         * @param matrix 需要回收的 matrix
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static release(matrix: Matrix): void;
        /**
         * get a matrix instance from the object pool or create a new one.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从对象池中取出或创建一个新的Matrix对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static create(): Matrix;
        /**
         * Creates a new Matrix object with the specified parameters.
         * @param a The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
         * @param b The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
         * @param c The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
         * @param d The value that affects the positioning of pixels along the y axis when scaling or rotating an image..
         * @param tx The distance by which to translate each point along the x axis.
         * @param ty The distance by which to translate each point along the y axis.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定参数创建一个 Matrix 对象
         * @param a 缩放或旋转图像时影响像素沿 x 轴定位的值。
         * @param b 旋转或倾斜图像时影响像素沿 y 轴定位的值。
         * @param c 旋转或倾斜图像时影响像素沿 x 轴定位的值。
         * @param d 缩放或旋转图像时影响像素沿 y 轴定位的值。
         * @param tx 沿 x 轴平移每个点的距离。
         * @param ty 沿 y 轴平移每个点的距离。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
        /**
         * The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 缩放或旋转图像时影响像素沿 x 轴定位的值
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        a: number;
        /**
         * The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 旋转或倾斜图像时影响像素沿 y 轴定位的值
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        b: number;
        /**
         * The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 旋转或倾斜图像时影响像素沿 x 轴定位的值
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        c: number;
        /**
         * The value that affects the positioning of pixels along the y axis when scaling or rotating an image.
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 缩放或旋转图像时影响像素沿 y 轴定位的值
         * @default 1
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        d: number;
        /**
         * The distance by which to translate each point along the x axis.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 沿 x 轴平移每个点的距离
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        tx: number;
        /**
         * The distance by which to translate each point along the y axis.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 沿 y 轴平移每个点的距离
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        ty: number;
        /**
         * Returns a new Matrix object that is a clone of this matrix, with an exact copy of the contained object.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回一个新的 Matrix 对象，它是此矩阵的克隆，带有与所含对象完全相同的副本。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        clone(): Matrix;
        /**
         * Concatenates a matrix with the current matrix, effectively combining the geometric effects of the two. In mathematical
         * terms, concatenating two matrixes is the same as combining them using matrix multiplication.
         * @param other The matrix to be concatenated to the source matrix.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将某个矩阵与当前矩阵连接，从而将这两个矩阵的几何效果有效地结合在一起。在数学术语中，将两个矩阵连接起来与使用矩阵乘法将它们结合起来是相同的。
         * @param other 要连接到源矩阵的矩阵。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        concat(other: Matrix): void;
        /**
         * Copies all of the matrix data from the source Point object into the calling Matrix object.
         * @param other  The Matrix object from which to copy the data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将源 Matrix 对象中的所有矩阵数据复制到调用方 Matrix 对象中。
         * @param other 要拷贝的目标矩阵
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        copyFrom(other: Matrix): Matrix;
        /**
         * Sets each matrix property to a value that causes a null transformation. An object transformed by applying an
         * identity matrix will be identical to the original. After calling the identity() method, the resulting matrix
         * has the following properties: a=1, b=0, c=0, d=1, tx=0, ty=0.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 为每个矩阵属性设置一个值，该值将导致矩阵无转换。通过应用恒等矩阵转换的对象将与原始对象完全相同。
         * 调用 identity() 方法后，生成的矩阵具有以下属性：a=1、b=0、c=0、d=1、tx=0 和 ty=0。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        identity(): void;
        /**
         * Performs the opposite transformation of the original matrix. You can apply an inverted matrix to an object to
         * undo the transformation performed when applying the original matrix.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 执行原始矩阵的逆转换。
         * 您可以将一个逆矩阵应用于对象来撤消在应用原始矩阵时执行的转换。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        invert(): void;
        /**
         * @private
         */
        $invertInto(target: Matrix): void;
        /**
         * Applies a rotation transformation to the Matrix object.
         * The rotate() method alters the a, b, c, and d properties of the Matrix object.
         * @param angle The rotation angle in radians.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 对 Matrix 对象应用旋转转换。
         * rotate() 方法将更改 Matrix 对象的 a、b、c 和 d 属性。
         * @param angle 以弧度为单位的旋转角度。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        rotate(angle: number): void;
        /**
         * Applies a scaling transformation to the matrix. The x axis is multiplied by sx, and the y axis it is multiplied by sy.
         * The scale() method alters the a and d properties of the Matrix object.
         * @param sx A multiplier used to scale the object along the x axis.
         * @param sy A multiplier used to scale the object along the y axis.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 对矩阵应用缩放转换。x 轴乘以 sx，y 轴乘以 sy。
         * scale() 方法将更改 Matrix 对象的 a 和 d 属性。
         * @param sx 用于沿 x 轴缩放对象的乘数。
         * @param sy 用于沿 y 轴缩放对象的乘数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        scale(sx: number, sy: number): void;
        /**
         * Sets the members of Matrix to the specified values
         * @param a The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
         * @param b The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
         * @param c The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
         * @param d The value that affects the positioning of pixels along the y axis when scaling or rotating an image..
         * @param tx The distance by which to translate each point along the x axis.
         * @param ty The distance by which to translate each point along the y axis.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 Matrix 的成员设置为指定值
         * @param a 缩放或旋转图像时影响像素沿 x 轴定位的值。
         * @param b 旋转或倾斜图像时影响像素沿 y 轴定位的值。
         * @param c 旋转或倾斜图像时影响像素沿 x 轴定位的值。
         * @param d 缩放或旋转图像时影响像素沿 y 轴定位的值。
         * @param tx 沿 x 轴平移每个点的距离。
         * @param ty 沿 y 轴平移每个点的距离。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setTo(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix;
        /**
         * Returns the result of applying the geometric transformation represented by the Matrix object to the specified point.
         * @param pointX The x coordinate for which you want to get the result of the Matrix transformation.
         * @param pointY The y coordinate for which you want to get the result of the Matrix transformation.
         * @param resultPoint A reusable instance of Point for saving the results. Passing this parameter can reduce the
         * number of reallocate objects, which allows you to get better code execution performance.
         * @returns The point resulting from applying the Matrix transformation.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回将 Matrix 对象表示的几何转换应用于指定点所产生的结果。
         * @param pointX 想要获得其矩阵转换结果的点的x坐标。
         * @param pointY 想要获得其矩阵转换结果的点的y坐标。
         * @param resultPoint 框架建议尽可能减少创建对象次数来优化性能，可以从外部传入一个复用的Point对象来存储结果，若不传入将创建一个新的Point对象返回。
         * @returns 由应用矩阵转换所产生的点。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        transformPoint(pointX: number, pointY: number, resultPoint?: Point): Point;
        /**
         * Translates the matrix along the x and y axes, as specified by the dx and dy parameters.
         * @param dx The amount of movement along the x axis to the right, in pixels.
         * @param dy The amount of movement down along the y axis, in pixels.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 沿 x 和 y 轴平移矩阵，由 dx 和 dy 参数指定。
         * @param dx 沿 x 轴向右移动的量（以像素为单位）。
         * @param dy 沿 y 轴向下移动的量（以像素为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        translate(dx: number, dy: number): void;
        /**
         * Determines whether two matrixes are equal.
         * @param other The matrix to be compared.
         * @returns A value of true if the object is equal to this Matrix object; false if it is not equal.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否与另一个矩阵数据相等
         * @param other 要比较的另一个矩阵对象。
         * @returns 是否相等，ture表示相等。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        equals(other: Matrix): boolean;
        /**
         * prepend matrix
         * @param a The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
         * @param b The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
         * @param c The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
         * @param d The value that affects the positioning of pixels along the y axis when scaling or rotating an image..
         * @param tx The distance by which to translate each point along the x axis.
         * @param ty The distance by which to translate each point along the y axis.
         * @returns matrix
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 前置矩阵
         * @param a 缩放或旋转图像时影响像素沿 x 轴定位的值
         * @param b 缩放或旋转图像时影响像素沿 y 轴定位的值
         * @param c 缩放或旋转图像时影响像素沿 x 轴定位的值
         * @param d 缩放或旋转图像时影响像素沿 y 轴定位的值
         * @param tx 沿 x 轴平移每个点的距离
         * @param ty 沿 y 轴平移每个点的距离
         * @returns 矩阵自身
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        prepend(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix;
        /**
         * append matrix
         * @param a The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
         * @param b The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
         * @param c The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
         * @param d The value that affects the positioning of pixels along the y axis when scaling or rotating an image..
         * @param tx The distance by which to translate each point along the x axis.
         * @param ty The distance by which to translate each point along the y axis.
         * @returns matrix
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 后置矩阵
         * @param a 缩放或旋转图像时影响像素沿 x 轴定位的值
         * @param b 缩放或旋转图像时影响像素沿 y 轴定位的值
         * @param c 缩放或旋转图像时影响像素沿 x 轴定位的值
         * @param d 缩放或旋转图像时影响像素沿 y 轴定位的值
         * @param tx 沿 x 轴平移每个点的距离
         * @param ty 沿 y 轴平移每个点的距离
         * @returns 矩阵自身
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        append(a: number, b: number, c: number, d: number, tx: number, ty: number): Matrix;
        /**
         * Given a point in the pretransform coordinate space, returns the coordinates of that point after the transformation occurs.
         * Unlike the standard transformation applied using the transformPoint() method, the deltaTransformPoint() method's transformation does not consider the translation parameters tx and ty.
         * @param point The point for which you want to get the result of the matrix transformation.
         * @returns The point resulting from applying the matrix transformation.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果给定预转换坐标空间中的点，则此方法返回发生转换后该点的坐标。
         * 与使用 transformPoint() 方法应用的标准转换不同，deltaTransformPoint() 方法的转换不考虑转换参数 tx 和 ty。
         * @param point 想要获得其矩阵转换结果的点
         * @returns 由应用矩阵转换所产生的点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        deltaTransformPoint(point: Point): Point;
        /**
         * Returns a text value listing the properties of the Matrix object.
         * @returns A string containing the values of the properties of the Matrix object: a, b, c, d, tx, and ty.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回将 Matrix 对象表示的几何转换应用于指定点所产生的结果。
         * @returns 一个字符串，它包含 Matrix 对象的属性值：a、b、c、d、tx 和 ty。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        toString(): string;
        /**
         * Includes parameters for scaling, rotation, and translation. When applied to a matrix it sets the matrix's values based on those parameters.
         * @param scaleX The factor by which to scale horizontally.
         * @param scaleY The factor by which scale vertically.
         * @param rotation The amount to rotate, in radians.
         * @param tx The number of pixels to translate (move) to the right along the x axis.
         * @param ty The number of pixels to translate (move) down along the y axis.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 包括用于缩放、旋转和转换的参数。当应用于矩阵时，该方法会基于这些参数设置矩阵的值。
         * @param scaleX 水平缩放所用的系数
         * @param scaleY 垂直缩放所用的系数
         * @param rotation 旋转量（以弧度为单位）
         * @param tx 沿 x 轴向右平移（移动）的像素数
         * @param ty 沿 y 轴向下平移（移动）的像素数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        createBox(scaleX: number, scaleY: number, rotation?: number, tx?: number, ty?: number): void;
        /**
         * Creates the specific style of matrix expected by the beginGradientFill() and lineGradientStyle() methods of the Graphics class.
         * Width and height are scaled to a scaleX/scaleY pair and the tx/ty values are offset by half the width and height.
         * @param width The width of the gradient box.
         * @param height The height of the gradient box.
         * @param rotation The amount to rotate, in radians.
         * @param tx The distance, in pixels, to translate to the right along the x axis. This value is offset by half of the width parameter.
         * @param ty The distance, in pixels, to translate down along the y axis. This value is offset by half of the height parameter.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建 Graphics 类的 beginGradientFill() 和 lineGradientStyle() 方法所需的矩阵的特定样式。
         * 宽度和高度被缩放为 scaleX/scaleY 对，而 tx/ty 值偏移了宽度和高度的一半。
         * @param width 渐变框的宽度
         * @param height 渐变框的高度
         * @param rotation 旋转量（以弧度为单位）
         * @param tx 沿 x 轴向右平移的距离（以像素为单位）。此值将偏移 width 参数的一半
         * @param ty 沿 y 轴向下平移的距离（以像素为单位）。此值将偏移 height 参数的一半
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        createGradientBox(width: number, height: number, rotation?: number, tx?: number, ty?: number): void;
        /**
         * @private
         */
        $transformBounds(bounds: Rectangle): void;
        /**
         * @private
         */
        private getDeterminant;
        /**
         * @private
         */
        $getScaleX(): number;
        /**
         * @private
         */
        $getScaleY(): number;
        /**
         * @private
         */
        $getSkewX(): number;
        /**
         * @private
         */
        $getSkewY(): number;
        /**
         * @private
         */
        $updateScaleAndRotation(scaleX: number, scaleY: number, skewX: number, skewY: number): void;
        /**
         * @private
         * target = other * this
         */
        $preMultiplyInto(other: Matrix, target: Matrix): void;
    }
    /**
     * @private
     * 仅供框架内复用，要防止暴露引用到外部。
     */
    let $TempMatrix: Matrix;
}
declare namespace egret {
}
declare namespace egret {
    /**
     * @private
     */
    let $locale_strings: any;
    /**
     * @private
     */
    let $language: string;
}
declare namespace egret.sys {
    /**
     * @private
     * 全局多语言翻译函数
     * @param code 要查询的字符串代码
     * @param args 替换字符串中{0}标志的参数列表
     * @returns 返回拼接后的字符串
     */
    function tr(code: number, ...args: any[]): string;
}
declare namespace egret {
}
/**
 * @version Egret 2.4
 * @platform Web,Native
 * @includeExample egret/localStorage/localStorage.ts
 */
declare namespace egret.localStorage {
    /**
     * Read data
     * @param key {string} Name of the key to be read
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 读取数据
     * @param key {string} 要读取的键名称
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let getItem: (key: string) => string;
    /**
     * Save data
     * @param key {string} Name of the key to be saved
     * @param value {string} Value to be saved
     * @returns {boolean} Whether data is saved successfully
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 保存数据
     * @param key {string} 要保存的键名称
     * @param value {string} 要保存的值
     * @returns {boolean} 数据保存是否成功
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let setItem: (key: string, value: string) => boolean;
    /**
     * Delete data
     * @param key {string} Name of the key to be deleted
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 删除数据
     * @param key {string} 要删除的键名称
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let removeItem: (key: string) => void;
    /**
     * Clear all data
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 将所有数据清空
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let clear: () => void;
}
declare namespace egret.localStorage.web {
}
declare namespace egret.sys {
    let usingChannel: Array<SoundChannel>;
    /**
     * @private
     * @param channel
     */
    function $pushSoundChannel(channel: SoundChannel): void;
    /**
     * @private
     * @param channel
     */
    function $popSoundChannel(channel: SoundChannel): boolean;
}
declare namespace egret {
    /**
     * The Sound class lets you work with sound in an application.
     * The Sound class lets you create a Sound object, load and play an external audio file into that object.
     * More detailed control of the sound is performed through the SoundChannel
     *
     * @event egret.Event.COMPLETE Dispatch when the audio resource is loaded and ready to play
     * @event egret.IOErrorEvent.IO_ERROR Dispatch when the audio resource is failed to load
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/media/Sound.ts
     * @language en_US
     */
    /**
     * Sound 允许您在应用程序中使用声音。使用 Sound 类可以创建 Sound 对象、将外部音频文件加载到该对象并播放该文件。
     * 可通过 SoundChannel 对声音执行更精细的控制，如控制音量和监控播放进度。
     * @see http://edn.egret.com/cn/docs/page/156 音频系统
     *
     * @event egret.Event.COMPLETE 音频加载完成时抛出
     * @event egret.IOErrorEvent.IO_ERROR 音频加载失败时抛出
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/media/Sound.ts
     * @language zh_CN
     */
    interface Sound extends EventDispatcher {
        /**
         * Initiates loading of an external audio file from the specified URL.
         * @param url Audio file URL
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 启动从指定 URL 加载外部音频文件的过程。
         * @param url 需要加载的音频文件URL
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        load(url: string): void;
        /**
         * Generates a new SoundChannel object to play back the sound.
         * @param startTime The initial position in seconds at which playback should start, (default = 0)
         * @param loops Plays, the default value is 0. Greater than 0 to the number of plays, such as 1 to play 1, less than or equal to 0, to loop.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 生成一个新的 SoundChannel 对象来播放该声音。此方法返回 SoundChannel 对象，访问该对象可停止声音调整音量。
         * @param startTime 应开始播放的初始位置（以秒为单位），默认值是 0
         * @param loops 播放次数，默认值是 0，循环播放。 大于 0 为播放次数，如 1 为播放 1 次；小于等于 0，为循环播放。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        play(startTime?: number, loops?: number): SoundChannel;
        /**
         * Closes the stream, causing any download of data to cease
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 关闭该流，从而停止所有数据的下载。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        close(): void;
        /**
         * Type, default is egret.Sound.EFFECT.
         * In the native and runtime environment, while only play a background music, sound length so as not to be too long.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 类型，默认为 egret.Sound.EFFECT。
         * 在 native 和 runtime 环境下，背景音乐同时只能播放一个，音效长度尽量不要太长。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        type: string;
        /**
         * Length of the current sound (in seconds).
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language en_US
         */
        /**
         * 当前声音的长度（以秒为单位）。
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language zh_CN
         */
        length: number;
    }
    /**
     * @copy egret.Sound
     */
    let Sound: {
        /**
         * Create Sound object, load an external audio file and play
         * @param url Audio file URL, Sound will start to load the media if url is not empty
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建 Sound 对象、将外部音频文件加载到该对象并播放该文件
         * @param url 需要加载的音频文件URL,如果指定了 url, Sound会立即开始加载指定的媒体文件
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        new (): Sound;
        /**
         * Background music
         * @default "music"
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 背景音乐
         * @default "music"
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        MUSIC: string;
        /**
         * EFFECT
         * @default "effect"
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 音效
         * @default "effect"
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        EFFECT: string;
    };
}
declare namespace egret {
    /**
     * The SoundChannel class controls a sound in an application.
     * Every sound is assigned to a sound channel, and the application
     * can have multiple sound channels that are mixed together.
     * The SoundChannel class contains a stop() method, properties for
     * set the volume of the channel
     *
     * @event egret.Event.SOUND_COMPLETE Dispatch when a sound has finished playing at last time
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/media/Sound.ts
     * @language en_US
     */
    /**
     * SoundChannel 类控制应用程序中的声音。每个声音均分配给一个声道，而且应用程序可以具有混合在一起的多个声道。
     * SoundChannel 类包含 stop() 方法、用于设置音量和监视播放进度的属性。
     *
     * @event egret.Event.SOUND_COMPLETE 音频最后一次播放完成时抛出
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/media/Sound.ts
    * @language zh_CN
    */
    interface SoundChannel extends IEventDispatcher {
        /**
         * The volume, ranging from 0 (silent) to 1 (full volume).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 音量范围从 0（静音）至 1（最大音量）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        volume: number;
        /**
         *  When the sound is playing, the position property indicates
         * in seconds the current point that is being played in the sound file.
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language en_US
         */
        /**
         * 当播放声音时，position 属性表示声音文件中当前播放的位置（以秒为单位）
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language zh_CN
         */
        position: number;
        /**
         * Stops the sound playing in the channel.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 停止在该声道中播放声音。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        stop(): void;
    }
}
declare namespace egret {
    /**
     * The Video class lets you work with video in an application.
     * The Video class lets you create a Video object, load and play an external video file into that object.
     * Note: On most mobile device, the video is playback in the full screen mode.<br/>
     *
     * @param url URL of the media to play, Video will start to load if the url is not empty
     *
     * @event egret.Event.COMPLETE Dispatch when the video resource is loaded and ready to play
     * @event egret.Event.ENDED Dispatch when the video playback ended
     * @event egret.IOErrorEvent.IO_ERROR when the video is failed to load
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/media/Video.ts
     * @language en_US
     */
    /**
     * Video 允许您在应用程序中使用视频。使用 Video 类可以创建 Video 对象、将外部视频文件加载到该对象并播放该文件。<br/>
     * 注意: 在大多数移动设备中，视频是强制全屏播放的，所以你可以直接调用 play() 方法全屏播放视频，不用将它绘制在Stage中。
     * @see http://edn.egret.com/cn/docs/page/657 视频系统
     *
     * @param url 要播放的视频的URL，如果url不为空，Video会立即加载这个视频
     *
     * @event egret.Event.COMPLETE 视频加载完成时抛出
     * @event egret.Event.ENDED 视频播放完成时抛出
     * @event egret.IOErrorEvent.IO_ERROR 视频加载失败时触发
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/media/Video.ts
     * @language zh_CN
     */
    interface Video extends DisplayObject {
        /**
         * Initiates loading of an external video file from the specified URL.
         * @param url Audio file URL
         * * @param cache Should cache the video，only  used in Native
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 启动从指定 URL 加载外部视频文件的过程。
         * @param url 需要加载的视频文件URL
         * @param cache 是否需要缓存到本地，只在 Native 上使用
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        load(url: string, cache?: boolean): void;
        /**
         * Play back the video.
         * @param startTime The initial position in seconds at which playback should start, (default = 0)
         * @param loop Defines should play the video again when the video is ended. (default = false)
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 播放该视频
         * @param startTime 应开始播放的初始位置（以秒为单位），默认值是视频上次结束的位置
         * @param loop 是否需要循环播放，默认值是 false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        play(startTime?: number, loop?: boolean): any;
        /**
         * Closes the stream, causing any download of data to cease
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 关闭该流，从而停止所有数据的下载。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        close(): void;
        /**
         * The URL of the video you want to play.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 想要播放的视频的URL
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        src: string;
        /**
         * The URL of an image you want to display before the video is loaded or video cannot been draw on the canvas on some mobile device.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 视频加载前，或者在不支持将 video 画在 canvas 的设备上，想要显示的视频截图地址。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        poster: string;
        /**
         * Should play the video in fullscreen mode (default = true).
         * Currently only supports full-screen mobile terminal web.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否全屏播放这个视频（默认值是 true）。
         * 目前移动端 web 只支持全屏。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        fullscreen: boolean;
        /**
         * The volume, ranging from 0 (silent) to 1 (full volume).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 音量范围从 0（静音）至 1（最大音量）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        volume: number;
        /**
         * When the video is playing, the position property indicates
         * in seconds the current point that is being played in the video file.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当播放视频时，position 属性表示视频文件中当前播放的位置（以秒为单位）
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        position: number;
        /**
         * Pause the video playing.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 暂停播放。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        pause(): void;
        /**
         * Get bitmapData of the video file, you can use the video as bitmapData on the stage.
         * Note: On most mobile device, the video is playback in the full screen mode.
         * So you can just use the play() method instead of draw it on the Stage
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         *  获取视频的 bitmapData, 你可以将视频绘制到舞台上。
         * 注意： 在大多数移动设备中，视频是全屏播放的，所以你可以直接调用 play() 方法全屏播放视频，不用将它绘制在Stage中。
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        bitmapData?: BitmapData;
        /**
         * Whether current video is paused.
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language en_US
         */
        /**
         * 当前视频是否在暂停状态。
         * @version Egret 2.4
         * @platform Web,Native
         * @readOnly
         * @language zh_CN
         */
        paused: boolean;
        /**
         * Length of the current video (in seconds).
         * @version Egret 3.0.8
         * @platform Web,Native
         * @readOnly
         * @language en_US
         */
        /**
         * 当前视频的长度（以秒为单位）。
         * @version Egret 3.0.8
         * @platform Web,Native
         * @readOnly
         * @language zh_CN
         */
        length: number;
    }
    /**
     * @copy egret.Video
     */
    let Video: {
        new (url?: string, cache?: boolean): Video;
    };
}
declare namespace egret.web {
    /**
     * @private
     * @inheritDoc
     */
    class HtmlSound extends egret.EventDispatcher implements egret.Sound {
        /**
         * Background music
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 背景音乐
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static MUSIC: string;
        /**
         * EFFECT
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 音效
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static EFFECT: string;
        /**
         * @private
         */
        type: string;
        /**
         * @private
         */
        private url;
        /**
         * @private
         */
        private originAudio;
        /**
         * @private
         */
        private loaded;
        /**
         * @private
         * @inheritDoc
         */
        constructor();
        get length(): number;
        private static loadingSoundMap;
        /**
         * @inheritDoc
         */
        load(url: string): void;
        /**
         * @inheritDoc
         */
        play(startTime?: number, loops?: number): SoundChannel;
        /**
         * @inheritDoc
         */
        close(): void;
        /**
         * @private
         */
        private static audios;
        private static clearAudios;
        static $clear(url: string): void;
        static $pop(url: string): HTMLAudioElement;
        static $recycle(url: string, audio: HTMLAudioElement): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * @inheritDoc
     */
    class HtmlSoundChannel extends egret.EventDispatcher implements egret.SoundChannel {
        /**
         * @private
         */
        $url: string;
        /**
         * @private
         */
        $loops: number;
        /**
         * @private
         */
        $startTime: number;
        /**
         * @private
         */
        private audio;
        private isStopped;
        /**
         * @private
         */
        constructor(audio: HTMLAudioElement);
        private canPlay;
        $play(): void;
        /**
         * @private
         */
        private onPlayEnd;
        /**
         * @private
         * @inheritDoc
         */
        stop(): void;
        /**
         * @private
         */
        private _volume;
        /**
         * @private
         * @inheritDoc
         */
        get volume(): number;
        /**
         * @inheritDoc
         */
        set volume(value: number);
        /**
         * @private
         * @inheritDoc
         */
        get position(): number;
    }
}
/**
 * @private
 */
interface AudioBufferSourceNodeEgret {
    buffer: any;
    context: any;
    onended: Function;
    stop(when?: number): void;
    noteOff(when?: number): void;
    addEventListener(type: string, listener: Function, useCapture?: boolean): any;
    removeEventListener(type: string, listener: Function, useCapture?: boolean): any;
    disconnect(): any;
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebAudioDecode {
        /**
         * @private
         */
        static ctx: any;
        /**
         * @private
         */
        static decodeArr: any[];
        /**
         * @private
         */
        private static isDecoding;
        /**
         * @private
         *
         */
        static decodeAudios(): void;
        /** 解决 ios13 页面切到后台再拉起，声音无法播放 */
        static initAudioContext: Function;
    }
    /**
     * @private
     * @inheritDoc
     */
    class WebAudioSound extends egret.EventDispatcher implements egret.Sound {
        /**
         * Background music
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 背景音乐
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static MUSIC: string;
        /**
         * EFFECT
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 音效
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static EFFECT: string;
        /**
         * @private
         */
        type: string;
        /**
         * @private
         */
        private url;
        /**
         * @private
         */
        private loaded;
        /**
         * @private
         * @inheritDoc
         */
        constructor();
        /**
         * @private
         */
        private audioBuffer;
        get length(): number;
        /**
         * @inheritDoc
         */
        load(url: string): void;
        /**
         * @inheritDoc
         */
        play(startTime?: number, loops?: number): SoundChannel;
        /**
         * @inheritDoc
         */
        close(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * @inheritDoc
     */
    class WebAudioSoundChannel extends egret.EventDispatcher implements egret.SoundChannel {
        /**
         * @private
         */
        $url: string;
        /**
         * @private
         */
        $loops: number;
        /**
         * @private
         */
        $startTime: number;
        /**
         * @private
         * audio音频对象
         * @member {any} egret.Sound#audio
         */
        $audioBuffer: AudioBuffer;
        /**
         * @private
         */
        private gain;
        /**
         * @private
         */
        private bufferSource;
        /**
         * @private
         */
        context: any;
        private isStopped;
        /**
         * @private
         */
        constructor();
        initGain(): void;
        /**
         * @private
         */
        private _currentTime;
        /**
         * @private
         */
        private _volume;
        $play(): void;
        stop(): void;
        /**
         * @private
         */
        private onPlayEnd;
        /**
         * @private
         * @inheritDoc
         */
        get volume(): number;
        /**
         * @inheritDoc
         */
        set volume(value: number);
        /**
         * @private
         */
        private _startTime;
        /**
         * @private
         * @inheritDoc
         */
        get position(): number;
    }
}
declare namespace egret.web {
    /**
     * @private
     * @inheritDoc
     */
    class WebVideo extends egret.DisplayObject implements egret.Video {
        /**
         * @inheritDoc
         */
        src: string;
        /**
         * @inheritDoc
         */
        poster: string;
        /**
         * @private
         */
        private posterData;
        /**
         * @private
         */
        private video;
        /**
         * @private
         */
        private loaded;
        /**
         * @private
         */
        private closed;
        /**
         * @private
         */
        private heightSet;
        /**
         * @private
         */
        private widthSet;
        /**
         * @private
         * pc上视频卡住的时候不能暂停
         */
        private waiting;
        /**
         * @private
         * 用户是否设置了 pause
         */
        private userPause;
        /**
         * @private
         * 用户是否设置了 play
         */
        private userPlay;
        /**
         * @inheritDoc
         */
        constructor(url?: string, cache?: boolean);
        protected createNativeDisplayObject(): void;
        /**
         * @inheritDoc
         */
        load(url?: string, cache?: boolean): void;
        private isPlayed;
        /**
         * @inheritDoc
         */
        play(startTime?: number, loop?: boolean): void;
        private videoPlay;
        private checkFullScreen;
        private goFullscreen;
        private setFullScreenMonitor;
        private screenError;
        private screenChanged;
        private exitFullscreen;
        /**
         * @private
         *
         */
        private onVideoEnded;
        /**
         * @private
         *
         */
        private onVideoError;
        /**
         * @inheritDoc
         */
        close(): void;
        /**
         * @inheritDoc
         */
        pause(): void;
        /**
         * @inheritDoc
         */
        get volume(): number;
        /**
         * @inheritDoc
         */
        set volume(value: number);
        /**
         * @inheritDoc
         */
        get position(): number;
        /**
         * @inheritDoc
         */
        set position(value: number);
        private _fullscreen;
        /**
         * @inheritDoc
         */
        get fullscreen(): boolean;
        /**
         * @inheritDoc
         */
        set fullscreen(value: boolean);
        private _bitmapData;
        /**
         * @inheritDoc
         */
        get bitmapData(): BitmapData;
        private loadPoster;
        /**
         * @private
         *
         */
        private onVideoLoaded;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        private getPlayWidth;
        private getPlayHeight;
        /**
         * @private
         */
        $updateRenderNode(): void;
        private markDirty;
        /**
         * @private
         * 设置显示高度
         */
        $setHeight(value: number): void;
        /**
         * @private
         * 设置显示宽度
         */
        $setWidth(value: number): void;
        get paused(): boolean;
        /**
         * @inheritDoc
         */
        get length(): number;
    }
}
declare namespace egret {
    /**
     * The HttpMethod class provides values that specify whether the HttpRequest object should use the POST method
     * or the GET method when sending data to a server.
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * HttpRequestMethod 类提供了一些值，这些值可指定在将数据发送到服务器时，
     * HttpRequest 对象应使用 POST 方法还是 GET 方法。
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    namespace HttpMethod {
        /**
         * Specifies that the HttpRequest object is a GET.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 HttpRequest 对象是一个 GET。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        const GET = "GET";
        /**
         * Specifies that the HttpRequest object is a POST.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示 HttpRequest 对象是一个 POST。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        const POST = "POST";
    }
}
declare namespace egret {
    /**
     * The HttpRequest class downloads data from a URL as text or binary data. It is useful for downloading text files,
     * XML, or other information to be used in a dynamic, data-driven application. A HttpRequest object downloads all
     * of the data from a URL before making it available to code in the applications. It sends out notifications about
     * the progress of the download, which you can monitor through the bytesLoaded and bytesTotal properties,
     * as well as through dispatched events.
     * @event egret.Event.COMPLETE Dispatched when the net request is complete.
     * @event egret.Event.IO_ERROR Dispatched when the net request is failed.
     * @event egret.ProgressEvent.PROGRESS Dispatched when data is received as the download operation progresses.
     * @see egret.HttpMethod
     * @see egret.HttpResponseType
     * @includeExample egret/net/HttpRequestExample.ts
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * HttpRequest 类以文本或二进制数据的形式从 URL 下载数据。
     * HttpRequest 对象会先从 URL 中下载所有数据，然后才将数据用于应用程序中的代码。它会发出有关下载进度的通知，
     * 通过 bytesLoaded 和 bytesTotal 属性以及已调度的事件，可以监视下载进度。
     * @event egret.Event.COMPLETE 加载完成
     * @event egret.Event.IO_ERROR 加载失败
     * @event egret.ProgressEvent.PROGRESS 加载进度，可通过event.bytesLoaded和event.bytesTotal统计进度信息。
     * @see egret.HttpMethod
     * @see egret.HttpResponseType
     * @includeExample egret/net/HttpRequestExample.ts
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface HttpRequest extends EventDispatcher {
        /**
         * The data received from the load operation.  The format of the data depends on the setting of the responseType property.
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 本次请求返回的数据，数据类型根据 responseType 设置的值确定。
         * @readOnly
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        response: any;
        /**
         * Controls whether the downloaded data is received as text (HttpResponseType.TEXT) or raw binary data (HttpResponseType.ArrayBuffer)<br/>
         * Note:If you attempt to set this property to an invalid value, Egret runtime set the value to HttpResponseType.TEXT.
         * @default egret.HttpResponseType.TEXT
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设置返回的数据格式为文本（HttpResponseType.TEXT）还是二进制数据（HttpResponseType.ArrayBuffer）<br/>
         * 注意：若尝试设置此属性为一个非法的值，运行时将使用HttpResponseType.TEXT。
         * @default egret.HttpResponseType.TEXT
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        responseType: string;
        /**
         * Can be set to a time in milliseconds.When set to a non-zero value will cause fetching to terminate after the given time has passed.
         * @default egret.HttpResponseType.TEXT
         * @version Egret 5.2.15
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 代表着一个请求在被自动终止前所消耗的毫秒数。默认值为 0，意味着没有超时。
         * @default egret.HttpResponseType.TEXT
         * @version Egret 5.2.15
         * @platform Web,Native
         * @language zh_CN
         */
        timeout: number;
        /**
         * indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies
         * or authorization headers. (This never affects same-site requests.)
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表明在进行跨站(cross-site)的访问控制(Access-Control)请求时，是否使用认证信息(例如cookie或授权的header)。(这个标志不会影响同站的请求)
         * @default false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        withCredentials: boolean;
        /**
         * Initializes a request.<br/>
         * Note: Calling this method for an already active request (one for which open() or openRequest() has already been
         * called) is the equivalent of calling abort().
         * @param url The URL to send the request to.
         * @param method The HTTP method to use, please use the const value in the HttpMethod class.
         * @see egret.HttpMethod
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 初始化一个请求.<br/>
         * 注意: 若在已经发出请求的对象上调用此方法，相当于立即调用abort().
         * @param url 该请求所要访问的URL该请求所要访问的URL
         * @param method 请求所使用的HTTP方法， 请使用 HttpMethod 定义的枚举值.
         * @see egret.HttpMethod
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        open(url: string, method?: string): void;
        /**
         * Sends the request.
         * @param data the data to send.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 发送请求.
         * @param data 需要发送的数据
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        send(data?: any): void;
        /**
         * Aborts the request if it has already been sent.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果请求已经被发送,则立刻中止请求.
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        abort(): void;
        /**
         * Returns all the response headers as a string, or null if no response has been received.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回所有响应头信息(响应头名和值), 如果响应头还没接受,则返回"".
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getAllResponseHeaders(): string;
        /**
         * Sets the value of an HTTP request header. You must call setRequestHeader() after open().
         * @param header The name of the header whose value is to be set.
         * @param value The value to set as the body of the header.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 给指定的HTTP请求头赋值.在这之前,您必须确认已经调用 open() 方法打开了一个url.
         * @param header 将要被赋值的请求头名称.
         * @param value 给指定的请求头赋的值.
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        setRequestHeader(header: string, value: string): void;
        /**
         * Returns the string containing the text of the specified header, or null if either the response has not yet been
         * received or the header doesn't exist in the response.
         * @param header The name of the header whose value is to be get.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回指定的响应头的值, 如果响应头还没被接受,或该响应头不存在,则返回"".
         * @param header 要返回的响应头名称
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getResponseHeader(header: string): string;
    }
    /**
     * Creates a HttpRequest object.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 创建一个 HttpRequest 实例。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let HttpRequest: {
        new (): HttpRequest;
    };
}
declare namespace egret {
    /**
     * The HttpResponseType class provides values that specify how downloaded data is received.
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * URLLoaderDataFormat 类提供了一些用于指定如何接收已下载数据的值。
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class HttpResponseType {
        /**
         * Specifies that downloaded data is received as text. This is the default value of HttpRequest.responseType
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回字符串。HttpRequest.responseType属性的默认值。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TEXT: string;
        /**
         * Specifies that downloaded data is received as raw binary data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 返回二进制的ArrayBuffer对象。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ARRAY_BUFFER: string;
    }
}
declare namespace egret {
    /**
     * The Loader class is used to load image (JPG, PNG, or GIF) files. Use the load() method to initiate loading.
     * The loaded image data is in the data property of ImageLoader.
     * @event egret.Event.COMPLETE Dispatched when the net request is complete.
     * @event egret.IOErrorEvent.IO_ERROR Dispatched when the net request is failed.
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/net/ImageLoaderExample.ts
     * @see http://edn.egret.com/cn/docs/page/590 加载位图文件
     * @language en_US
     */
    /**
     * ImageLoader 类可用于加载图像（JPG、PNG 或 GIF）文件。使用 load() 方法来启动加载。被加载的图像对象数据将存储在 ImageLoader.data 属性上 。
     * @event egret.Event.COMPLETE 加载完成
     * @event egret.IOErrorEvent.IO_ERROR 加载失败
     * @see egret.HttpRequest
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/net/ImageLoaderExample.ts
     * @see http://edn.egret.com/cn/docs/page/590 加载位图文件
     * @language zh_CN
     */
    interface ImageLoader extends EventDispatcher {
        /**
         * The data received from the load operation.
         * @default null
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用 load() 方法加载成功的 BitmapData 图像数据。
         * @default null
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        data: BitmapData;
        /**
         * Specifies whether or not cross-site Access-Control requests should be made when loading a image from foreign origins.<br/>
         * possible values are:"anonymous","use-credentials" or null.
         * @default null
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当从其他站点加载一个图片时，指定是否启用跨域资源共享(CORS)，默认值为null。<br/>
         * 可以设置为"anonymous","use-credentials"或null,设置为其他值将等同于"anonymous"。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        crossOrigin: string;
        /**
         * start a load operation。<br/>
         * Note: Calling this method for an already active request (one for which load() has already been
         * called) will abort the last load operation immediately.
         * @param url 要加载的图像文件的地址。
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 启动一次图像加载。<br/>
         * 注意：若之前已经调用过加载请求，重新调用 load() 将终止先前的请求，并开始新的加载。
         * @param url 要加载的图像文件的地址。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        load(url: string): void;
    }
    /**
     * Creates a ImageLoader object
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 创建一个 ImageLoader 实例
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let ImageLoader: {
        /**
         * constructor
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 构造函数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        new (): ImageLoader;
        /**
         * Specifies whether to enable cross-origin resource sharing, If ImageLoader instance has been set crossOrigin property will be used to set the property.
         * @version Egret 2.5.7
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 指定是否启用跨域资源共享,如果ImageLoader实例有设置过crossOrigin属性将使用设置的属性
         * @version Egret 2.5.7
         * @platform Web,Native
         * @language zh_CN
         */
        crossOrigin: string;
    };
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebHttpRequest extends EventDispatcher implements HttpRequest {
        /**
         * @private
         */
        constructor();
        /**
         * @private
         */
        private _xhr;
        /**
         *
         */
        timeout: number;
        /**
         * @private
         * 本次请求返回的数据，数据类型根据responseType设置的值确定。
         */
        get response(): any;
        /**
         * @private
         */
        private _responseType;
        /**
         * @private
         * 设置返回的数据格式，请使用 HttpResponseType 里定义的枚举值。设置非法的值或不设置，都将使用HttpResponseType.TEXT。
         */
        get responseType(): "" | "arraybuffer" | "blob" | "document" | "json" | "text";
        set responseType(value: "" | "arraybuffer" | "blob" | "document" | "json" | "text");
        /**
         * @private
         */
        private _withCredentials;
        /**
         * @private
         * 表明在进行跨站(cross-site)的访问控制(Access-Control)请求时，是否使用认证信息(例如cookie或授权的header)。 默认为 false。(这个标志不会影响同站的请求)
         */
        get withCredentials(): boolean;
        set withCredentials(value: boolean);
        /**
         * @private
         */
        private _url;
        private _method;
        /**
         * @private
         *
         * @returns
         */
        private getXHR;
        /**
         * @private
         * 初始化一个请求.注意，若在已经发出请求的对象上调用此方法，相当于立即调用abort().
         * @param url 该请求所要访问的URL该请求所要访问的URL
         * @param method 请求所使用的HTTP方法， 请使用 HttpMethod 定义的枚举值.
         */
        open(url: string, method?: string): void;
        /**
         * @private
         * 发送请求.
         * @param data 需要发送的数据
         */
        send(data?: any): void;
        /**
         * @private
         * 如果请求已经被发送,则立刻中止请求.
         */
        abort(): void;
        /**
         * @private
         * 返回所有响应头信息(响应头名和值), 如果响应头还没接受,则返回"".
         */
        getAllResponseHeaders(): string;
        private headerObj;
        /**
         * @private
         * 给指定的HTTP请求头赋值.在这之前,您必须确认已经调用 open() 方法打开了一个url.
         * @param header 将要被赋值的请求头名称.
         * @param value 给指定的请求头赋的值.
         */
        setRequestHeader(header: string, value: string): void;
        /**
         * @private
         * 返回指定的响应头的值, 如果响应头还没被接受,或该响应头不存在,则返回"".
         * @param header 要返回的响应头名称
         */
        getResponseHeader(header: string): string;
        /**
         * @private
         */
        private onTimeout;
        /**
         * @private
         */
        private onReadyStateChange;
        /**
         * @private
         */
        private updateProgress;
        /**
         * @private
         */
        private onload;
        /**
         * @private
         */
        private onerror;
    }
}
declare namespace egret.web {
    /**
     * @private
     * ImageLoader 类可用于加载图像（JPG、PNG 或 GIF）文件。使用 load() 方法来启动加载。被加载的图像对象数据将存储在 ImageLoader.data 属性上 。
     */
    class WebImageLoader extends EventDispatcher implements ImageLoader {
        /**
         * @private
         * 使用 load() 方法加载成功的 BitmapData 图像数据。
         */
        data: BitmapData;
        /**
         * @private
         * 当从其他站点加载一个图片时，指定是否启用跨域资源共享(CORS)，默认值为null。
         * 可以设置为"anonymous","use-credentials"或null,设置为其他值将等同于"anonymous"。
         */
        private _crossOrigin;
        /**
         * @private
         * 标记crossOrigin有没有被设置过,设置过之后使用设置的属性
         */
        private _hasCrossOriginSet;
        set crossOrigin(value: string);
        get crossOrigin(): string;
        /**
         * @private
         * 指定是否启用跨域资源共享,如果ImageLoader实例有设置过crossOrigin属性将使用设置的属性
         */
        static crossOrigin: string;
        /**
         * @private
         */
        private currentImage;
        /**
         * @private
         */
        private currentURL;
        /**
         * @private
         */
        private request;
        /**
         * @private
         * 启动一次图像加载。注意：若之前已经调用过加载请求，重新调用 load() 将终止先前的请求，并开始新的加载。
         * @param url 要加载的图像文件的地址。
         */
        load(url: string): void;
        /**
         * @private
         */
        private onBlobLoaded;
        /**
         * @private
         */
        private onBlobError;
        /**
         * @private
         */
        private loadImage;
        /**
         * @private
         */
        private onImageComplete;
        /**
         * @private
         */
        private onLoadError;
        private dispatchIOError;
        /**
         * @private
         */
        private getImage;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 渲染节点类型
     */
    const enum RenderNodeType {
        /**
         * 位图渲染节点
         */
        BitmapNode = 1,
        /**
         * 文本渲染节点
         */
        TextNode = 2,
        /**
         * 矢量渲染节点
         */
        GraphicsNode = 3,
        /**
         * 组渲染节点
         */
        GroupNode = 4,
        /**
         * Mesh 节点
         */
        MeshNode = 5,
        /**
         * 普通位图渲染节点
         */
        NormalBitmapNode = 6
    }
    /**
     * @private
     * 渲染节点基类
     */
    class RenderNode {
        /**
         * 节点类型..
         */
        type: number;
        /**
         * 绘制数据
         */
        drawData: any[];
        /**
         * 绘制次数
         */
        protected renderCount: number;
        /**
         * 在显示对象的$updateRenderNode()方法被调用前，自动清空自身的drawData数据。
         */
        cleanBeforeRender(): void;
        $getRenderCount(): number;
        cacheDrawData: any;
        /**节点tint颜色值*/ color: number;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 位图渲染节点
     */
    class BitmapNode extends RenderNode {
        constructor();
        /**
         * 要绘制的位图
         */
        image: BitmapData;
        /**
         * 控制在缩放时是否对位图进行平滑处理。
         */
        smoothing: boolean;
        /**
         * 相对偏移矩阵。
         */
        matrix: egret.Matrix;
        /**
         * 图片宽度。WebGL渲染使用
         */
        imageWidth: number;
        /**
         * 图片高度。WebGL渲染使用
         */
        imageHeight: number;
        /**
         * 使用的混合模式
         */
        blendMode: number;
        /**
         * 相对透明度
         */
        alpha: number;
        /**
         * 颜色变换滤镜
         */
        filter: ColorMatrixFilter;
        /**
         * 翻转
         */
        rotated: boolean;
        /**
         * 绘制一次位图
         */
        drawImage(sourceX: number, sourceY: number, sourceW: number, sourceH: number, drawX: number, drawY: number, drawW: number, drawH: number): void;
        /**
         * 在显示对象的$updateRenderNode()方法被调用前，自动清空自身的drawData数据。
         */
        cleanBeforeRender(): void;
        static $updateTextureData(node: sys.NormalBitmapNode, image: BitmapData, bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX: number, offsetY: number, textureWidth: number, textureHeight: number, destW: number, destH: number, sourceWidth: number, sourceHeight: number, fillMode: string, smoothing: boolean): void;
        /**
         * @private
         * 绘制九宫格位图
         */
        static $updateTextureDataWithScale9Grid(node: sys.NormalBitmapNode, image: BitmapData, scale9Grid: egret.Rectangle, bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX: number, offsetY: number, textureWidth: number, textureHeight: number, destW: number, destH: number, sourceWidth: number, sourceHeight: number, smoothing: boolean): void;
        /**
         * @private
         */
        private static drawClipImage;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 显示列表
     */
    class DisplayList extends HashObject {
        /**
         * 创建一个DisplayList对象，若内存不足或无法创建RenderBuffer，将会返回null。
         */
        static create(target: DisplayObject): DisplayList;
        /**
         * @private
         * 创建一个DisplayList对象
         */
        constructor(root: DisplayObject);
        private isStage;
        /**
         * 位图渲染节点
         */
        $renderNode: RenderNode;
        /**
         * @private
         * 获取渲染节点
         */
        $getRenderNode(): sys.RenderNode;
        /**
         * @private
         */
        renderBuffer: RenderBuffer;
        /**
         * @private
         */
        offsetX: number;
        /**
         * @private
         */
        offsetY: number;
        /**
         * @private
         */
        private offsetMatrix;
        /**
         * @private
         * 显示列表根节点
         */
        root: DisplayObject;
        /**
         * @private
         * 设置剪裁边界，不再绘制完整目标对象，画布尺寸由外部决定，超过边界的节点将跳过绘制。
         */
        setClipRect(width: number, height: number): void;
        $canvasScaleX: number;
        $canvasScaleY: number;
        /**
         * @private
         * 绘制根节点显示对象到目标画布，返回draw的次数。
         */
        drawToSurface(): number;
        private bitmapData;
        /**
         * @private
         * 改变画布的尺寸，由于画布尺寸修改会清空原始画布。所以这里将原始画布绘制到一个新画布上，再与原始画布交换。
         */
        changeSurfaceSize(): void;
        static $canvasScaleFactor: number;
        /**
         * @private
         */
        static $canvasScaleX: number;
        static $canvasScaleY: number;
        /**
         * @private
         */
        static $setCanvasScale(x: number, y: number): void;
        /**
         * @private
         * stage渲染
         */
        $stageRenderToSurface: () => void;
    }
}
declare namespace egret {
    type runEgretOptions = {
        renderMode?: string;
        audioType?: number;
        screenAdapter?: sys.IScreenAdapter;
        antialias?: boolean;
        canvasScaleFactor?: number;
        calculateCanvasScaleFactor?: (context: CanvasRenderingContext2D) => number;
        pro?: boolean;
        /**
         * 以下目前仅供小游戏使用
         * The following are for mini-games only
         */
        entryClassName?: string;
        scaleMode?: string;
        frameRate?: number;
        contentWidth?: number;
        contentHeight?: number;
        orientation?: string;
        maxTouches?: number;
        showFPS?: boolean;
        showLog?: boolean;
        fpsStyles?: string;
        platform?: string;
    };
    /**
     * egret project entry function
     * @param options An object containing the initialization properties for egret engine.
     * @language en_US
     */
    /**
     * egret工程入口函数
     * @param options 一个可选对象，包含初始化Egret引擎需要的参数。
     * @language zh_CN
     */
    function runEgret(options?: runEgretOptions): void;
    /**
     * Refresh the screen display
     * @language en_US
     */
    /**
     * 刷新屏幕显示
     * @language zh_CN
     */
    function updateAllScreens(): void;
}
declare namespace egret {
    /**
     * @private
     */
    interface FPSDisplay {
        /**
         * 更新FPS信息
         */
        update(datas: FPSData): void;
        /**
         * 插入一条log信息
         */
        updateInfo(info: string): void;
        /**
         * 插入一条warn信息
         */
        updateWarn(info: string): void;
        /**
         * 插入一条error信息
         */
        updateError(info: string): void;
    }
    /**
     * @private
     */
    let FPSDisplay: {
        new (stage: Stage, showFPS: boolean, showLog: boolean, logFilter: string, styles: Object): FPSDisplay;
    };
}
/**
 * @private
 */
interface FPSData extends Object {
    fps: number;
    draw: number;
    costTicker: number;
    costRender: number;
}
declare namespace egret.sys {
    /**
     * @private
     * 矢量渲染节点
     */
    class GraphicsNode extends RenderNode {
        constructor();
        /**
         * 指定一种简单的单一颜色填充，在绘制时该填充将在随后对其他 Graphics 方法（如 lineTo() 或 drawCircle()）的调用中使用。
         * @param color 填充的颜色
         * @param alpha 填充的 Alpha 值
         * @param beforePath 插入在指定的路径命令之前绘制，通常是插入到当前正在绘制的线条路径之前，以确保线条总在填充的上方。
         */
        beginFill(color: number, alpha?: number, beforePath?: Path2D): Path2D;
        /**
         * 指定一种简单的单一颜色填充，在绘制时该填充将在随后对其他 Graphics 方法（如 lineTo() 或 drawCircle()）的调用中使用。
         * 调用 clear() 方法会清除填充。
         * @param type 用于指定要使用哪种渐变类型的 GradientType 类的值：GradientType.LINEAR 或 GradientType.RADIAL。
         * @param colors 渐变中使用的 RGB 十六进制颜色值的数组（例如，红色为 0xFF0000，蓝色为 0x0000FF，等等）。对于每种颜色，请在 alphas 和 ratios 参数中指定对应值。
         * @param alphas colors 数组中对应颜色的 alpha 值数组。
         * @param ratios 颜色分布比率的数组。有效值为 0 到 255。
         * @param matrix 一个由 egret.Matrix 类定义的转换矩阵。egret.Matrix 类包括 createGradientBox() 方法，通过该方法可以方便地设置矩阵，以便与 beginGradientFill() 方法一起使用
         * @param beforePath 插入在指定的路径命令之前绘制，通常是插入到当前正在绘制的线条路径之前，以确保线条总在填充的上方。
         */
        beginGradientFill(type: string, colors: number[], alphas: number[], ratios: number[], matrix?: egret.Matrix, beforePath?: Path2D): Path2D;
        /**
         * 指定一种线条样式以用于随后对 lineTo() 或 drawCircle() 等 Graphics 方法的调用。
         * @param thickness 一个整数，以点为单位表示线条的粗细，有效值为 0 到 255。如果未指定数字，或者未定义该参数，则不绘制线条。如果传递的值小于 0，则默认值为 0。值 0 表示极细的粗细；最大粗细为 255。如果传递的值大于 255，则默认值为 255。
         * @param color 线条的十六进制颜色值（例如，红色为 0xFF0000，蓝色为 0x0000FF 等）。如果未指明值，则默认值为 0x000000（黑色）。可选。
         * @param alpha 表示线条颜色的 Alpha 值的数字；有效值为 0 到 1。如果未指明值，则默认值为 1（纯色）。如果值小于 0，则默认值为 0。如果值大于 1，则默认值为 1。
         * @param caps 用于指定线条末端处端点类型的 CapsStyle 类的值。默认值：CapsStyle.ROUND
         * @param joints 指定用于拐角的连接外观的类型。默认值：JointStyle.ROUND
         * @param miterLimit 用于表示剪切斜接的极限值的数字。
         */
        lineStyle(thickness?: number, color?: number, alpha?: number, caps?: string, joints?: string, miterLimit?: number, lineDash?: number[]): StrokePath;
        /**
         * 清空所有缓存的绘制数据
         */
        clear(): void;
        /**
         * 覆盖父类方法，不自动清空缓存的绘图数据，改为手动调用clear()方法清空。
         */
        cleanBeforeRender(): void;
        /**
         * 绘制x偏移
         */
        x: number;
        /**
         * 绘制y偏移
         */
        y: number;
        /**
         * 绘制宽度
         */
        width: number;
        /**
         * 绘制高度
         */
        height: number;
        /**
         * 脏渲染标记
         * 暂时调用lineStyle,beginFill,beginGradientFill标记,实际应该draw时候标记在Path2D
         */
        dirtyRender: boolean;
        $texture: WebGLTexture;
        $textureWidth: number;
        $textureHeight: number;
        $canvasScaleX: number;
        $canvasScaleY: number;
        /**
         * 清除非绘制的缓存数据
         */
        clean(): void;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 组渲染节点,用于组合多个渲染节点
     */
    class GroupNode extends RenderNode {
        /**
         * 相对偏移矩阵。
         */
        matrix: egret.Matrix;
        constructor();
        addNode(node: RenderNode): void;
        /**
         * 覆盖父类方法，不自动清空缓存的绘图数据，改为手动调用clear()方法清空。
         * 这里只是想清空绘制命令，因此不调用super
         */
        cleanBeforeRender(): void;
        $getRenderCount(): number;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * Mesh 渲染节点
     */
    class MeshNode extends RenderNode {
        constructor();
        /**
         * 要绘制的位图
         */
        image: BitmapData;
        /**
         * 控制在缩放时是否对位图进行平滑处理。
         */
        smoothing: boolean;
        /**
         * 图片宽度。WebGL渲染使用
         */
        imageWidth: number;
        /**
         * 图片高度。WebGL渲染使用
         */
        imageHeight: number;
        /**
         * 相对偏移矩阵。
         */
        matrix: egret.Matrix;
        /**
         * UV 坐标。
         */
        uvs: number[];
        /**
         * 顶点坐标。
         */
        vertices: number[];
        /**
         * 顶点索引。
         */
        indices: number[];
        /**
         * 顶点索引。
         */
        bounds: Rectangle;
        /**
         * 使用的混合模式
         */
        blendMode: number;
        /**
         * 相对透明度
         */
        alpha: number;
        /**
         * 颜色变换滤镜
         */
        filter: ColorMatrixFilter;
        /**
         * 翻转
         */
        rotated: boolean;
        /**
         * 绘制一次位图
         */
        drawMesh(sourceX: number, sourceY: number, sourceW: number, sourceH: number, drawX: number, drawY: number, drawW: number, drawH: number): void;
        /**
         * 在显示对象的$updateRenderNode()方法被调用前，自动清空自身的drawData数据。
         */
        cleanBeforeRender(): void;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 位图渲染节点
     */
    class NormalBitmapNode extends RenderNode {
        constructor();
        /**
         * 要绘制的位图
         */
        image: BitmapData;
        /**
         * 控制在缩放时是否对位图进行平滑处理。
         */
        smoothing: boolean;
        /**
         * 图片宽度。WebGL渲染使用
         */
        imageWidth: number;
        /**
         * 图片高度。WebGL渲染使用
         */
        imageHeight: number;
        /**
         * 翻转
         */
        rotated: boolean;
        sourceX: number;
        sourceY: number;
        sourceW: number;
        sourceH: number;
        drawX: number;
        drawY: number;
        drawW: number;
        drawH: number;
        /**
         * 绘制一次位图
         */
        drawImage(sourceX: number, sourceY: number, sourceW: number, sourceH: number, drawX: number, drawY: number, drawW: number, drawH: number): void;
        /**
         * 在显示对象的$updateRenderNode()方法被调用前，自动清空自身的drawData数据。
         */
        cleanBeforeRender(): void;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 文本格式
     */
    interface TextFormat {
        /**
         * 颜色值
         */
        textColor?: number;
        /**
         * 描边颜色值
         */
        strokeColor?: number;
        /**
         * 字号
         */
        size?: number;
        /**
         * 描边大小
         */
        stroke?: number;
        /**
         * 是否加粗
         */
        bold?: boolean;
        /**
         * 是否倾斜
         */
        italic?: boolean;
        /**
         * 字体名称
         */
        fontFamily?: string;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 文本渲染节点
     */
    class TextNode extends RenderNode {
        constructor();
        /**
         * 颜色值
         */
        textColor: number;
        /**
         * 描边颜色值
         */
        strokeColor: number;
        /**
         * 字号
         */
        size: number;
        /**
         * 描边大小
         */
        stroke: number;
        /**
         * 是否加粗
         */
        bold: boolean;
        /**
         * 是否倾斜
         */
        italic: boolean;
        /**
         * 字体名称
         */
        fontFamily: string;
        /**
         * 绘制一行文本
         */
        drawText(x: number, y: number, text: string, format: any): void;
        /**
         * 绘制x偏移
         */
        x: number;
        /**
         * 绘制y偏移
         */
        y: number;
        /**
         * 绘制宽度
         */
        width: number;
        /**
         * 绘制高度
         */
        height: number;
        /**
         * 脏渲染标记
         */
        dirtyRender: boolean;
        $texture: WebGLTexture;
        $textureWidth: number;
        $textureHeight: number;
        $canvasScaleX: number;
        $canvasScaleY: number;
        /**
         * 清除非绘制的缓存数据
         */
        clean(): void;
        /**
         * 在显示对象的$updateRenderNode()方法被调用前，自动清空自身的drawData数据。
         */
        cleanBeforeRender(): void;
        display: any;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 路径类型
     */
    const enum PathType {
        /**
         * 纯色填充路径
         */
        Fill = 1,
        /**
         * 渐变填充路径
         */
        GradientFill = 2,
        /**
         * 线条路径
         */
        Stroke = 3
    }
    /**
     * @private
     * 2D路径命令
     */
    const enum PathCommand {
        MoveTo = 1,
        LineTo = 2,
        CurveTo = 3,
        CubicCurveTo = 4
    }
    /**
     * @private
     * 2D路径
     */
    class Path2D {
        /**
         * 路径类型
         */
        type: number;
        $commands: number[];
        $data: number | number[][];
        protected commandPosition: number;
        protected dataPosition: number;
        /**
         * 当前移动到的坐标X
         * 注意：目前只有drawArc之前会被赋值
         */
        $lastX: number;
        /**
         * 当前移动到的坐标Y
         * 注意：目前只有drawArc之前会被赋值
         */
        $lastY: number;
        /**
         * 将当前绘图位置移动到 (x, y)。如果缺少任何一个参数，则此方法将失败，并且当前绘图位置不改变。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         */
        moveTo(x: number, y: number): void;
        /**
         * 使用当前线条样式绘制一条从当前绘图位置开始到 (x, y) 结束的直线；当前绘图位置随后会设置为 (x, y)。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         */
        lineTo(x: number, y: number): void;
        /**
         * 使用当前线条样式和由 (controlX, controlY) 指定的控制点绘制一条从当前绘图位置开始到 (anchorX, anchorY) 结束的二次贝塞尔曲线。当前绘图位置随后设置为 (anchorX, anchorY)。
         * 如果在调用 moveTo() 方法之前调用了 curveTo() 方法，则当前绘图位置的默认值为 (0, 0)。如果缺少任何一个参数，则此方法将失败，并且当前绘图位置不改变。
         * 绘制的曲线是二次贝塞尔曲线。二次贝塞尔曲线包含两个锚点和一个控制点。该曲线内插这两个锚点，并向控制点弯曲。
         * @param controlX 一个数字，指定控制点相对于父显示对象注册点的水平位置。
         * @param controlY 一个数字，指定控制点相对于父显示对象注册点的垂直位置。
         * @param anchorX 一个数字，指定下一个锚点相对于父显示对象注册点的水平位置。
         * @param anchorY 一个数字，指定下一个锚点相对于父显示对象注册点的垂直位置。
         */
        curveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void;
        /**
         * 从当前绘图位置到指定的锚点绘制一条三次贝塞尔曲线。三次贝塞尔曲线由两个锚点和两个控制点组成。该曲线内插这两个锚点，并向两个控制点弯曲。
         * @param controlX1 指定首个控制点相对于父显示对象的注册点的水平位置。
         * @param controlY1 指定首个控制点相对于父显示对象的注册点的垂直位置。
         * @param controlX2 指定第二个控制点相对于父显示对象的注册点的水平位置。
         * @param controlY2 指定第二个控制点相对于父显示对象的注册点的垂直位置。
         * @param anchorX 指定锚点相对于父显示对象的注册点的水平位置。
         * @param anchorY 指定锚点相对于父显示对象的注册点的垂直位置。
         */
        cubicCurveTo(controlX1: number, controlY1: number, controlX2: number, controlY2: number, anchorX: number, anchorY: number): void;
        /**
         * 绘制一个矩形
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         */
        drawRect(x: number, y: number, width: number, height: number): void;
        /**
         * 绘制一个圆角矩形。
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         * @param ellipseWidth 用于绘制圆角的椭圆的宽度（以像素为单位）。
         * @param ellipseHeight 用于绘制圆角的椭圆的高度（以像素为单位）。 （可选）如果未指定值，则默认值与为 ellipseWidth 参数提供的值相匹配。
         */
        drawRoundRect(x: number, y: number, width: number, height: number, ellipseWidth: number, ellipseHeight?: number): void;
        /**
         * 绘制一个圆。
         * @param x 圆心相对于父显示对象注册点的 x 位置（以像素为单位）。
         * @param y 相对于父显示对象注册点的圆心的 y 位置（以像素为单位）。
         * @param radius 圆的半径（以像素为单位）。
         */
        drawCircle(x: number, y: number, radius: number): void;
        /**
         * 绘制一个椭圆。
         * @param x 一个表示相对于父显示对象注册点的水平位置的数字（以像素为单位）。
         * @param y 一个表示相对于父显示对象注册点的垂直位置的数字（以像素为单位）。
         * @param width 矩形的宽度（以像素为单位）。
         * @param height 矩形的高度（以像素为单位）。
         */
        drawEllipse(x: number, y: number, width: number, height: number): void;
        /**
         * 绘制一段圆弧路径。圆弧路径的圆心在 (x, y) 位置，半径为 r ，根据anticlockwise （默认为顺时针）指定的方向从 startAngle 开始绘制，到 endAngle 结束。
         * @param x 圆弧中心（圆心）的 x 轴坐标。
         * @param y 圆弧中心（圆心）的 y 轴坐标。
         * @param radius 圆弧的半径。
         * @param startAngle 圆弧的起始点， x轴方向开始计算，单位以弧度表示。
         * 注意，必须在0~2π之间。
         * @param endAngle 圆弧的终点， 单位以弧度表示。
         * 注意，必须在0~2π之间。
         * @param anticlockwise 如果为 true，逆时针绘制圆弧，反之，顺时针绘制。
         */
        drawArc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: boolean): void;
        /**
         * 绘制一段圆弧路径
         * @param x 圆弧中心（圆心）的 x 轴坐标。
         * @param y 圆弧中心（圆心）的 y 轴坐标。
         * @param radiusX 圆弧的半径 x。
         * @param radiusY 圆弧的半径 y。
         * @param startAngle 圆弧的起始点， x轴方向开始计算，单位以弧度表示。
         * 注意：必须为正数。
         * @param endAngle 圆弧的终点， 单位以弧度表示。
         * 注意：与startAngle差值必须在0~2π之间。
         * @param anticlockwise 如果为 true，逆时针绘制圆弧，反之，顺时针绘制。
         * 注意：如果为true，endAngle必须小于startAngle，反之必须大于。
         */
        private arcToBezier;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 填充路径
     */
    class FillPath extends Path2D {
        constructor();
        /**
         * 填充颜色
         */
        fillColor: number;
        /**
         * 填充透明度
         */
        fillAlpha: number;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 渐变填充路径
     */
    class GradientFillPath extends Path2D {
        constructor();
        gradientType: string;
        colors: number[];
        alphas: number[];
        ratios: number[];
        matrix: Matrix;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 线条路径。
     * 注意：当线条宽度（lineWidth）为1或3像素时，需要特殊处理，往右下角偏移0.5像素，以显示清晰锐利的线条。
     */
    class StrokePath extends Path2D {
        constructor();
        /**
         * 线条宽度。
         * 注意：绘制时对1像素和3像素要特殊处理，整体向右下角偏移0.5像素，以显示清晰锐利的线条。
         */
        lineWidth: number;
        /**
         * 线条颜色
         */
        lineColor: number;
        /**
         * 线条透明度
         */
        lineAlpha: number;
        /**
         * 端点样式,"none":无端点,"round":圆头端点,"square":方头端点
         */
        caps: string;
        /**
         * 联接点样式,"bevel":斜角连接,"miter":尖角连接,"round":圆角连接
         */
        joints: string;
        /**
         * 用于表示剪切斜接的极限值的数字。
         */
        miterLimit: number;
        /**
         * 描述交替绘制线段和间距（坐标空间单位）长度的数字。
         */
        lineDash: number[];
    }
}
declare namespace egret.sys {
    let $TempStage: egret.Stage;
    /**
     * @private
     * Egret播放器
     */
    class Player extends HashObject {
        /**
         * @private
         * 实例化一个播放器对象。
         */
        constructor(buffer: RenderBuffer, stage: Stage, entryClassName: string);
        /**
         * @private
         */
        private createDisplayList;
        /**
         * @private
         */
        private screenDisplayList;
        /**
         * @private
         * 入口类的完整类名
         */
        private entryClassName;
        /**
         * @private
         * 舞台引用
         */
        stage: Stage;
        /**
         * @private
         * 入口类实例
         */
        private root;
        /**
         * @private
         */
        private isPlaying;
        /**
         * @private
         * 启动播放器
         */
        start(): void;
        /**
         * @private
         */
        private initialize;
        /**
         * @private
         * 停止播放器，停止后将不能重新启动。
         */
        stop(): void;
        /**
         * @private
         * 暂停播放器，后续可以通过调用start()重新启动播放器。
         */
        pause(): void;
        /**
         * @private
         * 渲染屏幕
         */
        $render(triggerByFrame: boolean, costTicker: number): void;
        /**
         * @private
         * 更新舞台尺寸
         * @param stageWidth 舞台宽度（以像素为单位）
         * @param stageHeight 舞台高度（以像素为单位）
         */
        updateStageSize(stageWidth: number, stageHeight: number): void;
        /**
         * @private
         * 显示FPS。
         */
        displayFPS(showFPS: boolean, showLog: boolean, logFilter: string, styles: Object): void;
        /**
         * @private
         */
        private showFPS;
        /**
         * @private
         */
        private showLog;
        /**
         * @private
         */
        private stageDisplayList;
    }
    /**
     * @private
     */
    let $logToFPS: (info: string) => void;
    /**
     * @private
     */
    let $warnToFPS: (info: string) => void;
    /**
     * @private
     */
    let $errorToFPS: (info: string) => void;
    class FPSImpl {
        private showFPS;
        private showLog;
        private logFilter;
        private styles?;
        private infoLines;
        private totalTime;
        private totalTick;
        private lastTime;
        private drawCalls;
        private costRender;
        private costTicker;
        private _stage;
        private fpsDisplay;
        private filter;
        constructor(stage: egret.Stage, showFPS: boolean, showLog: boolean, logFilter: string, styles?: Object);
        update(drawCalls: number, costRender: any, costTicker: any): void;
        updateInfo(info: any): void;
        updateWarn(info: any): void;
        updateError(info: any): void;
    }
    let setRenderMode: (renderMode: string) => void;
    let WebGLRenderContext: {
        new (width?: number, height?: number, context?: WebGLRenderingContext): RenderContext;
    };
}
/**
 * @private
 */
declare module egret {
    /**
     * @private
     */
    var nativeRender: boolean;
}
/**
 * @private
 */
interface PlayerOption {
    /**
     * 入口类完整类名
     */
    entryClassName?: string;
    /**
     * 默认帧率
     */
    frameRate?: number;
    /**
     * 屏幕适配模式
     */
    scaleMode?: string;
    /**
     * 初始内容宽度
     */
    contentWidth?: number;
    /**
     * 初始内容高度
     */
    contentHeight?: number;
    /**
     * 屏幕方向
     */
    orientation?: string;
    /**
     * 显示FPS
     */
    showFPS?: boolean;
    /**
     *
     */
    fpsStyles?: Object;
    /**
     * 显示日志
     */
    showLog?: boolean;
    /**
     * 过滤日志的正则表达式
     */
    logFilter?: string;
    /**
     *
     */
    maxTouches?: number;
    /**
     *
     */
    textureScaleFactor?: number;
    /**GYLite 平台，默认空，为web*/
    platform?: string;
}
declare namespace egret.sys {
    /**
     * @private
     * 共享的用于碰撞检测的渲染缓冲
     */
    let customHitTestBuffer: sys.RenderBuffer;
    /**
     * @private
     * 共享的用于canvas碰撞检测的渲染缓冲
     */
    let canvasHitTestBuffer: sys.RenderBuffer;
    /**
     * @private
     * 渲染缓冲
     */
    interface RenderBuffer {
        /**
         * 呈现最终绘图结果的画布。
         * @readOnly
         */
        surface: any;
        /**
         * 渲染上下文。
         * @readOnly
         */
        context: any;
        /**
         * 渲染缓冲的宽度，以像素为单位。
         * @readOnly
         */
        width: number;
        /**
         * 渲染缓冲的高度，以像素为单位。
         * @readOnly
         */
        height: number;
        /**
         * 改变渲染缓冲的大小并清空缓冲区
         * @param width 改变后的宽
         * @param height 改变后的高
         * @param useMaxSize 若传入true，则将改变后的尺寸与已有尺寸对比，保留较大的尺寸。
         */
        resize(width: number, height: number, useMaxSize?: boolean): void;
        /**
         * 获取指定区域的像素
         */
        getPixels(x: number, y: number, width?: number, height?: number): number[];
        /**
         * 转换成base64字符串，如果图片（或者包含的图片）跨域，则返回null
         * @param type 转换的类型，如: "image/png","image/jpeg"
         */
        toDataURL(type?: string, ...args: any[]): string;
        /**
         * 清空缓冲区数据
         */
        clear(): void;
        /**
         * 销毁渲染缓冲
         */
        destroy(): void;
    }
    /**
     * @private
     */
    let RenderBuffer: {
        /**
         * 创建一个RenderTarget。
         * 注意：若内存不足或创建缓冲区失败，将会抛出错误异常。
         * @param width 渲染缓冲的初始宽
         * @param height 渲染缓冲的初始高
         * @param root 是否为舞台buffer
         */
        new (width?: number, height?: number, root?: boolean): RenderBuffer;
    };
    /**
     * @private
     */
    let CanvasRenderBuffer: {
        /**
         * 创建一个CanvasRenderBuffer。
         * 注意：若内存不足或创建缓冲区失败，将会抛出错误异常。
         * @param width 渲染缓冲的初始宽
         * @param height 渲染缓冲的初始高
         */
        new (width?: number, height?: number): RenderBuffer;
    };
}
/**
 * @private
 */
interface CanvasRenderingContext2D {
    imageSmoothingEnabled: boolean;
    $imageSmoothingEnabled: boolean;
    $offsetX: number;
    $offsetY: number;
}
declare namespace egret {
    class CanvasRenderer {
        private nestLevel;
        render(displayObject: DisplayObject, buffer: sys.RenderBuffer, matrix: Matrix, forRenderTexture?: boolean): number;
        /**
         * @private
         * 绘制一个显示对象
         */
        private drawDisplayObject;
        private drawWithFilter;
        private drawWithClip;
        private drawWithScrollRect;
        drawNodeToBuffer(node: sys.RenderNode, buffer: sys.RenderBuffer, matrix: Matrix, forHitTest?: boolean): void;
        /**
         * 将一个DisplayObject绘制到渲染缓冲，用于RenderTexture绘制
         * @param displayObject 要绘制的显示对象
         * @param buffer 渲染缓冲
         * @param matrix 要叠加的矩阵
         */
        drawDisplayToBuffer(displayObject: DisplayObject, buffer: sys.RenderBuffer, matrix: Matrix): number;
        private renderNode;
        private renderNormalBitmap;
        private renderBitmap;
        private renderMesh;
        private drawMesh;
        renderText(node: sys.TextNode, context: CanvasRenderingContext2D): void;
        private renderingMask;
        /**
         * @private
         */
        renderGraphics(node: sys.GraphicsNode, context: CanvasRenderingContext2D, forHitTest?: boolean): number;
        private renderPath;
        private renderGroup;
        private createRenderBuffer;
        renderClear(): void;
        /**
         * Do special treatment on wechat ios10
         */
        wxiOS10: boolean;
    }
    /**
     * @private
     * 获取字体字符串
     */
    function getFontString(node: sys.TextNode, format: sys.TextFormat): string;
    /**
     * @private
     * 获取RGBA字符串
     */
    function getRGBAString(color: number, alpha: number): string;
}
declare namespace egret.sys {
    /**
     * @private
     * 设备屏幕
     */
    interface Screen {
        /**
         * @private
         * 更新屏幕视口尺寸
         */
        updateScreenSize(): any;
        /**
         * @private
         * 更新触摸数量
         */
        updateMaxTouches(): any;
        /**
         * @private
         * 设置分辨率尺寸
         */
        setContentSize(width: number, height: number): any;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 屏幕适配器接口，当播放器视口尺寸改变时，屏幕适配器将被用于计算当前对应的舞台显示尺寸。
     */
    interface IScreenAdapter {
        /**
         * @private
         * 计算舞台显示尺寸
         * @param scaleMode 当前的缩放模式
         * @param screenWidth 播放器视口宽度
         * @param screenHeight 播放器视口高度
         * @param contentWidth 初始化内容宽度
         * @param contentHeight 初始化内容高度
         */
        calculateStageSize(scaleMode: string, screenWidth: number, screenHeight: number, contentWidth: number, contentHeight: number): StageDisplaySize;
    }
    /**
     * @private
     * 舞台显示尺寸数据
     */
    interface StageDisplaySize {
        /**
         * @private
         * 舞台宽度
         */
        stageWidth: number;
        /**
         * @private
         * 舞台高度
         */
        stageHeight: number;
        /**
         * @private
         * 显示宽度，若跟舞台宽度不同，将会产生缩放。
         */
        displayWidth: number;
        /**
         * @private
         * 显示高度，若跟舞台高度不同，将会产生缩放。
         */
        displayHeight: number;
    }
    /**
     * @private
     * 屏幕适配器实例，开发者可以通过给这个变量赋值实现了IScreenAdapter接口的实例，从而注入自定义的屏幕适配器。
     */
    let screenAdapter: IScreenAdapter;
    /**
     * @private
     * 屏幕适配器默认实现，开发者可以实现自定义规则的屏幕适配器。并在初始化加载时将适配器的实例赋值给egret.sys.screenAdapter上，从而替换掉默认适配器。
     */
    class DefaultScreenAdapter extends HashObject implements IScreenAdapter {
        /**
         * @private
         */
        constructor();
        /**
         * @private
         * 计算舞台显示尺寸
         * @param scaleMode 当前的缩放模式
         * @param screenWidth 播放器视口宽度
         * @param screenHeight 播放器视口高度
         * @param contentWidth 初始化内容宽度
         * @param contentHeight 初始化内容高度
         */
        calculateStageSize(scaleMode: string, screenWidth: number, screenHeight: number, contentWidth: number, contentHeight: number): StageDisplaySize;
    }
}
declare namespace egret.sys {
    /**
     * @private
     * 是否ios14
     */
    let isIOS14: boolean;
    /**
     * @private
     */
    let systemRenderer: SystemRenderer;
    /**
     * @private
     * 用于碰撞检测绘制
     */
    let canvasRenderer: SystemRenderer;
    /**
     * @private
     * 显示渲染器接口
     */
    interface SystemRenderer {
        /**
         * 渲染一个显示对象
         * @param displayObject 要渲染的显示对象
         * @param buffer 渲染缓冲
         * @param matrix 要叠加的矩阵
         * @param forRenderTexture 绘制目标是RenderTexture的标志
         * @returns drawCall触发绘制的次数
         */
        render(displayObject: DisplayObject, buffer: RenderBuffer, matrix: Matrix, forRenderTexture?: boolean): number;
        /**
         * 将一个RenderNode对象绘制到渲染缓冲
         * @param node 要绘制的节点
         * @param buffer 渲染缓冲
         * @param matrix 要叠加的矩阵
         * @param forHitTest 绘制结果是用于碰撞检测。若为true，当渲染GraphicsNode时，会忽略透明度样式设置，全都绘制为不透明的。
         */
        drawNodeToBuffer(node: sys.RenderNode, buffer: RenderBuffer, matrix: Matrix, forHitTest?: boolean): void;
        renderClear(): any;
        /**GYLite 是否ios10以上*/
        get wxiOS10(): boolean;
        set wxiOS10(val: boolean);
    }
    /**
     *
     */
    interface RenderContext {
    }
    /**
     * 创建一个canvas。
     */
    function mainCanvas(width?: number, height?: number): HTMLCanvasElement;
    function createCanvas(width?: number, height?: number): HTMLCanvasElement;
    /**
    * 重新设置主canvas的大小
    */
    function resizeContext(renderContext: RenderContext, width: number, height: number, useMaxSize?: boolean): void;
    /**
    * 获得系统的渲染运行时
    */
    function getContextWebGL(surface: HTMLCanvasElement): WebGLRenderingContext;
    function getContext2d(surface: HTMLCanvasElement): CanvasRenderingContext2D;
    /**
    * 仅通过bitmapData创建纹理
    */
    function createTexture(renderContext: RenderContext, bitmapData: BitmapData | HTMLCanvasElement): WebGLTexture;
    /**
    * 通过 width, height, data创建纹理
    */
    function _createTexture(renderContext: RenderContext, width: number, height: number, data: any): WebGLTexture;
    /**
     * 画texture
     **/
    function drawTextureElements(renderContext: RenderContext, data: any, offset: number): number;
    /**
     * 测量文本的宽度
     * @param context
     * @param text
     */
    function measureTextWith(context: CanvasRenderingContext2D, text: string): number;
    /**
     * 为CanvasRenderBuffer创建一个canvas
     * @param defaultFunc
     * @param width
     * @param height
     * @param root
     */
    function createCanvasRenderBufferSurface(defaultFunc: (width?: number, height?: number) => HTMLCanvasElement, width?: number, height?: number, root?: boolean): HTMLCanvasElement;
    /**
     * 改变渲染缓冲的大小并清空缓冲区
     * @param renderContext
     * @param width
     * @param height
     * @param useMaxSize
     */
    function resizeCanvasRenderBuffer(renderContext: RenderContext, width: number, height: number, useMaxSize?: boolean): void;
}
declare namespace egret.sys {
    /**
     * @private
     */
    let $START_TIME: number;
    /**
     * @private
     * 是否要广播Event.RENDER事件的标志。
     */
    let $invalidateRenderFlag: boolean;
    /**
     * @private
     * 需要立即刷新屏幕的标志
     */
    let $requestRenderingFlag: boolean;
    /**
     * Egret心跳计时器
     */
    class SystemTicker {
        /**
         * @private
         */
        constructor();
        /**
         * @private
         */
        private playerList;
        /**
         * @private
         * 注册一个播放器实例并运行
         */
        $addPlayer(player: Player): void;
        /**
         * @private
         * 停止一个播放器实例的运行。
         */
        $removePlayer(player: Player): void;
        /**
         * @private
         */
        private callBackList;
        /**
         * @private
         */
        private thisObjectList;
        /**
         * @private
         */
        $startTick(callBack: (timeStamp: number) => boolean, thisObject: any): void;
        /**
         * @private
         */
        $stopTick(callBack: (timeStamp: number) => boolean, thisObject: any): void;
        /**
         * @private
         */
        private getTickIndex;
        /**
         * @private
         *
         */
        private concatTick;
        /**
         * @private
         * 全局帧率
         */
        $frameRate: number;
        /**
         * @private
         */
        private frameInterval;
        /**
         * @private
         */
        private frameDeltaTime;
        /**
         * @private
         */
        private lastTimeStamp;
        /**
         * @private
         * 设置全局帧率
         */
        $setFrameRate(value: number): boolean;
        /**
         * @private
         */
        private lastCount;
        /**
         * @private
         * ticker 花销的时间
         */
        private costEnterFrame;
        /**
         * @private
         * 是否被暂停
         */
        private isPaused;
        /**
         * Pause the ticker.
         * @version Egret 5.0.2
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 暂停心跳
         * @version Egret 5.0.2
         * @platform Web,Native
         * @language zh_CN
         */
        pause(): void;
        /**
         * Resume the ticker.
         * @version Egret 5.0.2
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 恢复心跳
         * @version Egret 5.0.2
         * @platform Web,Native
         * @language zh_CN
         */
        resume(): void;
        /**
         * @private
         * 执行一次刷新
         */
        update(forceUpdate?: boolean): void;
        /**
         * @private
         * 执行一次屏幕渲染
         */
        private render;
        /**
         * @private
         * 广播EnterFrame事件。
         */
        private broadcastEnterFrame;
        /**
         * @private
         * 广播Render事件。
         */
        private broadcastRender;
        /**
         * @private
         */
        private callLaters;
        /**
         * @private
         */
        private callLaterAsyncs;
        /**
         * @private
         */
        $beforeRender: () => void;
        /**
         * @private
         */
        $afterRender: () => void;
    }
}
declare module egret {
    namespace lifecycle {
        type LifecyclePlugin = (context: LifecycleContext) => void;
        /**
         * @private
         */
        let stage: egret.Stage;
        /**
         * @private
         */
        let contexts: LifecycleContext[];
        class LifecycleContext {
            pause(): void;
            resume(): void;
            onUpdate?: () => void;
        }
        let onResume: () => void;
        let onPause: () => void;
        function addLifecycleListener(plugin: LifecyclePlugin): void;
    }
    /**
     * 心跳计时器单例
     */
    let ticker: sys.SystemTicker;
}
/**
 * @private
 */
declare let egret_stages: egret.Stage[];
declare namespace egret.sys {
    /**
     * @private
     * 用户交互操作管理器
     */
    class TouchHandler extends HashObject {
        private maxTouches;
        private useTouchesCount;
        /**
         * @private
         */
        constructor(stage: Stage);
        /**
         * @private
         * 设置同时触摸数量
         */
        $initMaxTouches(): void;
        /**
         * @private
         */
        private stage;
        /**
         * @private
         */
        private touchDownTarget;
        /**
         * @private
         * 触摸开始（按下）
         * @param x 事件发生处相对于舞台的坐标x
         * @param y 事件发生处相对于舞台的坐标y
         * @param touchPointID 分配给触摸点的唯一标识号
         */
        onTouchBegin(x: number, y: number, touchPointID: number): boolean;
        /**
         * @private
         */
        private lastTouchX;
        /**
         * @private
         */
        private lastTouchY;
        /**
         * @private
         * 触摸移动
         * @param x 事件发生处相对于舞台的坐标x
         * @param y 事件发生处相对于舞台的坐标y
         * @param touchPointID 分配给触摸点的唯一标识号
         */
        onTouchMove(x: number, y: number, touchPointID: number): boolean;
        /**
         * @private
         * 触摸结束（弹起）
         * @param x 事件发生处相对于舞台的坐标x
         * @param y 事件发生处相对于舞台的坐标y
         * @param touchPointID 分配给触摸点的唯一标识号
         */
        onTouchEnd(x: number, y: number, touchPointID: number): boolean;
        /**
         * @private
         * 获取舞台坐标下的触摸对象 GYLite 优化stageX stageY判断
         */
        private findTarget;
        /**
         * @private
         * 设置同时触摸数量
         */
        $updateMaxTouches: (value: any) => void;
        static lastStageX: number;
        static lastStageY: number;
        static lastTime: number;
        static lastTarget: any;
    }
}
declare namespace egret {
    /**
     * Orientation monitor the orientation of the device, send CHANGE event when the orientation is changed
     *
     * @event egret.Event.CHANGE device's orientation is changed
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/DeviceOrientation.ts
     * @see http://edn.egret.com/cn/docs/page/661 获取设备旋转角度
     * @language en_US
     */
    /**
     * Orientation 监听设备方向的变化，当方向变化时派发 CHANGE 事件
     * @event egret.Event.CHANGE 设备方向改变时派发
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/DeviceOrientation.ts
     * @see http://edn.egret.com/cn/docs/page/661 获取设备旋转角度
     * @language zh_CN
     */
    interface DeviceOrientation extends EventDispatcher {
        /**
         * Start to monitor the device's orientation
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 开始监听设备方向变化
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        start(): void;
        /**
         * Stop monitor the device's orientation
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 停止监听设备方向变化
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        stop(): void;
    }
    /**
     * @copy egret.Orientation
     */
    let DeviceOrientation: {
        new (): DeviceOrientation;
    };
}
declare namespace egret {
    /**
     * The Geolocation able to obtain the position of the device.
     * Geolocation will emit CHANGE event when the device's location is changed.
     * It will emit IO_ERROR event if the location request is denied
     * or there is no location service on the device.
     *
     * @event egret.Event.CHANGE The device's location is changed
     * @event egret.Event.IO_ERROR Error occurred while getting the location
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/Geolocation.ts
     * @language en_US
     */
    /**
     * Geolocation 能够从设备的定位服务获取设备的当前位置。
     * 当设备的位置发生改变时 Geolocation 会派发 CHANGE 事件。
     * 当定位请求被拒绝或该设备没有定位服务时 Geolocation 会派发 IO_ERROR 事件。
     *
     * @event egret.Event.CHANGE 设备位置发生改变
     * @event egret.Event.IO_ERROR 获取设备位置时发生错误
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/Geolocation.ts
     * @language zh_CN
     */
    interface Geolocation extends EventDispatcher {
        /**
         * Start to monitor the device's location
         * @returns
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 开始监听设备位置信息
         * @returns
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        start(): void;
        /**
         * Stop monitor the device's location
         * @returns
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 停止监听设备位置信息
         * @returns
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        stop(): void;
    }
    /**
     * @copy egret.Geolocation
     */
    let Geolocation: {
        /**
         * constructor
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 构造函数
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        new (): Geolocation;
    };
}
declare namespace egret {
    /**
     * @copy egret.Motion
     */
    let Motion: {
        new (): Motion;
    };
    /**
     * The Motion class emits events based on activity detected by the device's motion sensor.
     * This data represents the device's movement along a 3-dimensional axis. When the device moves,
     * the sensor detects this movement and emit the CHANGE event. @see egret.MotionEvent
     *
     * @event egret.Event.CHANGE device is moved
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/Motion.ts
     * @language en_US
     */
    /**
     * Motion 类从用户设备读取运动状态信息并派发 CHANGE 事件。
     * 当设备移动时，传感器会检测到此移动并返回设备加速度，重力和旋转数据。@see egret.MotionEvent
     * Motion 类提供了 start 和 stop 方法，来启动和停止运动信息检查
     *
     * @event egret.Event.CHANGE 运动状态发生改变
     * @version Egret 2.4
     * @platform Web
     * @includeExample egret/sensor/Motion.ts
     * @language zh_CN
     */
    interface Motion extends EventDispatcher {
        /**
         * Start to monitor device movement
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 开始监听设备运动状态
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        start(): void;
        /**
         * Stop monitor device movement
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 停止监听设备运动状态
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        stop(): void;
    }
    /**
     * A DeviceRotationRate object provides information about the rate at which
     * the device is rotating around all three axes.
     * @version Egret 2.4
     * @platform Web
     * @language en_US
     */
    /**
     * DeviceRotationRate 提供设备围绕三个轴旋转的角速度信息，单位是 角度/秒
     * @version Egret 2.4
     * @platform Web
     * @language zh_CN
     */
    interface DeviceRotationRate {
        /**
         * The amount of rotation around the Z axis, in degrees per second.
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 设备绕 Z 轴旋转的角速度信息，单位是 度/秒
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        alpha: number;
        /**
         * The amount of rotation around the X axis, in degrees per second.
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 设备绕 X 轴旋转的角速度信息，单位是 度/秒
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        beta: number;
        /**
         * The amount of rotation around the Y axis, in degrees per second.
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * 设备绕 Y 轴旋转的角速度信息，单位是 度/秒
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        gamma: number;
    }
    /**
     * A DeviceAcceleration object provides information about the amount
     * of acceleration the device is experiencing along all three axes.
     * Acceleration is expressed in m/s2.
     * @version Egret 2.4
     * @platform Web
     * @language en_US
     */
    /**
     * DeviceAcceleration 提供设备在三个维度的加速度信息，加速度值的单位是 m/s2
     * @version Egret 2.4
     * @platform Web
     * @language zh_CN
     */
    interface DeviceAcceleration {
        /**
         * The amount of acceleration along the X axis
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * X 轴方向的加速度值
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        x: number;
        /**
         * The amount of acceleration along the Y axis
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * Y 轴方向的加速度值
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        y: number;
        /**
         * The amount of acceleration along the Z axis
         * @version Egret 2.4
         * @platform Web
         * @language en_US
         */
        /**
         * Z 轴方向的加速度值
         * @version Egret 2.4
         * @platform Web
         * @language zh_CN
         */
        z: number;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebDeviceOrientation extends EventDispatcher implements DeviceOrientation {
        /**
         * @private
         *
         */
        start(): void;
        /**
         * @private
         *
         */
        stop(): void;
        /**
         * @private
         */
        protected onChange: (e: DeviceOrientationEvent) => void;
    }
}
/**
 * @private
 */
interface BrowerGeolocation extends Geolocation {
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebGeolocation extends EventDispatcher implements Geolocation {
        /**
         * @private
         */
        private geolocation;
        /**
         * @private
         */
        private watchId;
        /**
         * @private
         */
        constructor(option?: PositionOptions);
        /**
         * @private
         *
         */
        start(): void;
        /**
         * @private
         *
         */
        stop(): void;
        /**
         * @private
         */
        private onUpdate;
        /**
         * @private
         */
        private onError;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebMotion extends EventDispatcher implements Motion {
        /**
         * @private
         *
         */
        start(): void;
        /**
         * @private
         *
         */
        stop(): void;
        /**
         * @private
         */
        protected onChange: (e: DeviceMotionEvent) => void;
    }
}
declare module egret {
    class Capabilities {
        static readonly language: string;
        static readonly isMobile: boolean;
        static readonly os: string;
        static readonly runtimeType: string;
        static readonly engineVersion: string;
        static readonly renderMode: string;
        static readonly boundingClientWidth: number;
        static readonly boundingClientHeight: number;
        static _supportedCompressedTexture: SupportedCompressedTexture;
    }
    namespace RuntimeType {
        const WEB = "web";
        const NATIVE = "native";
        const RUNTIME2 = "runtime2";
        const MYGAME = "mygame";
        const WXGAME = "wxgame";
        const BAIDUGAME = "baidugame";
        const QGAME = "qgame";
        const OPPOGAME = "oppogame";
        const QQGAME = "qqgame";
        const VIVOGAME = "vivogame";
        const QHGAME = "qhgame";
        const TTGAME = "ttgame";
        const FASTGAME = "fastgame";
        const TBCREATIVEAPP = "tbcreativeapp";
    }
    interface SupportedCompressedTexture {
        pvrtc: boolean;
        etc1: boolean;
    }
}
declare namespace egret {
    /**
     * Writes an error message to the console if the assertion is false. If the assertion is true, nothing will happen.
     * @param assertion Any boolean expression. If the assertion is false, the message will get written to the console.
     * @param message the message written to the console
     * @param optionalParams the extra messages written to the console
     * @language en_US
     */
    /**
     * 判断参数assertion是否为true，若为false则抛出异常并且在console输出相应信息，反之什么也不做。
     * @param assertion 一个 boolean 表达式，若结果为false，则抛出错误并输出信息。
     * @param message 要输出到控制台的信息
     * @param optionalParams 要输出到控制台的额外可选信息
     * @language zh_CN
     */
    function assert(assertion?: boolean, message?: string, ...optionalParams: any[]): void;
    /**
     * Writes a warning message to the console.
     * @param message the message written to the console
     * @param optionalParams the extra messages written to the console
     * @language en_US
     */
    /**
     * 输出一个警告信息到控制台。
     * @param message 要输出到控制台的信息
     * @param optionalParams 要输出到控制台的额外信息
     * @language zh_CN
     */
    function warn(message?: any, ...optionalParams: any[]): void;
    /**
     * Writes an error message to the console.
     * @param message the message written to the console
     * @param optionalParams the extra messages written to the console
     * @language en_US
     */
    /**
     * 输出一个错误信息到控制台。
     * @param message 要输出到控制台的信息
     * @param optionalParams 要输出到控制台的额外信息
     * @language zh_CN
     */
    function error(message?: any, ...optionalParams: any[]): void;
    /**
     * Writes an message to the console.
     * @param message the message written to the console
     * @param optionalParams the extra messages written to the console
     * @language en_US
     */
    /**
     * 输出一个日志信息到控制台。
     * @param message 要输出到控制台的信息
     * @param optionalParams 要输出到控制台的额外信息
     * @language zh_CN
     */
    function log(message?: any, ...optionalParams: any[]): void;
}
declare namespace egret {
    /**
     * Adds an interface-name-to-implementation-class mapping to the registry.
     * @param interfaceName the interface name to register. For example："eui.IAssetAdapter","eui.Theme"
     * @param instance the instance to register.
     * @version Egret 3.2.1
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 注册一个接口实现。
     * @param interfaceName 注入的接口名称。例如："eui.IAssetAdapter","eui.Theme"
     * @param instance 实现此接口的实例。
     * @version Egret 3.2.1
     * @platform Web,Native
     * @language zh_CN
     */
    function registerImplementation(interfaceName: string, instance: any): void;
    /**
     * Returns the singleton instance of the implementation class that was registered for the specified interface.
     * This method is usually called by egret framework.
     * @param interfaceName The interface name to identify. For example："eui.IAssetAdapter","eui.Theme"
     * @returns the singleton instance of the implementation class
     * @version Egret 3.2.1
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 获取一个接口实现。此方法通常由框架内部调用。获取项目注入的自定义实现实例。
     * @param interfaceName 要获取的接口名称。例如："eui.IAssetAdapter","eui.Theme"
     * @returns 返回实现此接口的实例。
     * @version Egret 3.2.1
     * @platform Web,Native
     * @language zh_CN
     */
    function getImplementation(interfaceName: string): any;
}
/**
 * @private
 */
declare namespace egret {
    /**
     * @private
     */
    let fontMapping: {};
}
/**
 * @private
 */
declare namespace egret_native {
    function readUpdateFileSync(filePath: any): any;
    function readResourceFileSync(filePath: any): any;
    function sendInfoToPlugin(info: string): void;
    function receivedPluginInfo(info: string): void;
    function nrInit(): void;
    function nrDownloadBuffers(callback: (displayCmdBuffer: Float32Array) => void): void;
    function nrSetRenderMode(mode: number): void;
    function nrRenderDisplayObject(id: number, scale: number, useClip: boolean, clipX: number, clipY: number, clipW: number, clipH: number): void;
    function nrRenderDisplayObject2(id: number, offsetX: number, offsetY: number, forHitTest: boolean): void;
    function nrLocalToGlobal(id: number, localX: number, localY: number): string;
    function nrGlobalToLocal(id: number, globalX: number, globalY: number): string;
    function nrGetTextFieldWidth(id: number): number;
    function nrGetTextFieldHeight(id: number): number;
    function nrGetTextWidth(id: number): number;
    function nrGetTextHeight(id: number): number;
    function nrResize(width: number, height: number): void;
    function nrSetCanvasScaleFactor(factor: number, scalex: number, scaley: number): void;
    function nrUpdate(): void;
    function nrRender(): void;
    function nrSendTextFieldData(textFieldId: number, strData: string): void;
    function nrUpdateCallbackList(dt: number): void;
    function nrActiveBuffer(id: number, width: number, height: number): void;
    function nrGetPixels(x: number, y: number, width: number, height: number, pixels: Uint8Array): void;
    function nrGetCustomImageId(type: number): number;
    function nrSetCustomImageData(customImageId: number, pvrtcData: any, width: any, height: any, mipmapsCount: any, format: any): void;
    class NrNode {
        constructor(id: number, type: number);
    }
}
/**
 * @private
 */
declare namespace egret_native {
    let rootWebGLBuffer: egret.sys.RenderBuffer;
    let forHitTest: boolean;
    let addModuleCallback: (callback: Function, thisObj: any) => void;
    let initNativeRender: () => void;
    let updateNativeRender: () => void;
    let activateBuffer: (buffer: egret.sys.RenderBuffer) => void;
    let getJsCustomFilterVertexSrc: (key: any) => any;
    let getJsCustomFilterFragSrc: (key: any) => any;
    let getJsCustomFilterUniforms: (key: any) => any;
    let nrABIVersion: number;
    let nrMinEgretVersion: string;
}
declare namespace egret_native {
    /**
     * @private
     */
    class NativeRenderSurface {
        width: number;
        height: number;
        constructor(currRenderBuffer: any, w?: number, h?: number, root?: boolean);
        resize(w: number, h: number): void;
    }
    /**
     * @private
     */
    class NativeBitmapData {
        $init(): any;
        $id: any;
    }
    /**
     * @private
     */
    class NativeDisplayObject {
        id: number;
        constructor(type: number);
        setChildrenSortMode(mode: string): void;
        addChildAt(childId: number, index: number): void;
        removeChild(childId: number): void;
        swapChild(index1: number, index2: number): void;
        setX(value: number): void;
        setY(value: number): void;
        setRotation(value: number): void;
        setScaleX(value: number): void;
        setScaleY(value: number): void;
        setSkewX(value: number): void;
        setSkewY(value: number): void;
        setAlpha(value: number): void;
        setAnchorOffsetX(value: number): void;
        setAnchorOffsetY(value: number): void;
        setVisible(value: boolean): void;
        setBlendMode(value: number): void;
        setMaskRect(x: number, y: number, w: number, h: number): void;
        setScrollRect(x: number, y: number, w: number, h: number): void;
        setFilters(filters: Array<egret.Filter>): void;
        static createFilter(filter: egret.Filter): void;
        static setFilterPadding(filterId: number, paddingTop: number, paddingBottom: number, paddingLeft: number, paddingRight: number): void;
        setMask(value: number): void;
        static setSourceToNativeBitmapData(nativeBitmapData: egret_native.NativeBitmapData, source: any): any;
        setTexture(texture: egret.Texture): void;
        setBitmapDataToMesh(texture: egret.Texture): void;
        setBitmapDataToParticle(texture: egret.Texture): void;
        setWidth(value: number): void;
        setHeight(value: number): void;
        setCacheAsBitmap(value: boolean): void;
        setBitmapFillMode(fillMode: string): void;
        setScale9Grid(x: number, y: number, w: number, h: number): void;
        setMatrix(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
        setIsTyping(value: boolean): void;
        setDataToBitmapNode(id: number, texture: egret.Texture, arr: number[]): void;
        setDataToMesh(vertexArr: number[], indiceArr: number[], uvArr: number[]): void;
        static setDataToFilter(currFilter: egret.Filter): void;
        static disposeNativeBitmapData(nativeBitmapData: egret_native.NativeBitmapData): void;
        static disposeTextData(node: egret.TextField): void;
        static disposeGraphicData(graphic: egret.Graphics): void;
        setFontSize(value: number): void;
        setLineSpacing(value: number): void;
        setTextColor(value: number): void;
        setTextFieldWidth(value: number): void;
        setTextFieldHeight(value: number): void;
        setFontFamily(value: string): void;
        setTextFlow(textArr: Array<egret.ITextElement>): void;
        setTextAlign(value: string): void;
        setVerticalAlign(value: string): void;
        setText(value: string): void;
        setBold(value: boolean): void;
        setItalic(value: boolean): void;
        setWordWrap(value: boolean): void;
        setMaxChars(value: number): void;
        setType(value: string): void;
        setStrokeColor(value: number): void;
        setStroke(value: number): void;
        setScrollV(value: number): void;
        setMultiline(value: boolean): void;
        setBorder(value: boolean): void;
        setBorderColor(value: number): void;
        setBackground(value: boolean): void;
        setBackgroundColor(value: number): void;
        setInputType(value: string): void;
        setBeginFill(color: number, alpha?: number): void;
        setBeginGradientFill(type: string, colors: number[], alphas: number[], ratios: number[], matrix: egret.Matrix): void;
        setEndFill(): void;
        setLineStyle(thickness?: number, color?: number, alpha?: number, pixelHinting?: boolean, scaleMode?: string, caps?: string, joints?: string, miterLimit?: number, lineDash?: number[]): void;
        setDrawRect(x: number, y: number, width: number, height: number): void;
        setDrawRoundRect(x: number, y: number, width: number, height: number, ellipseWidth: number, ellipseHeight?: number): void;
        setDrawCircle(x: number, y: number, radius: number): void;
        setDrawEllipse(x: number, y: number, width: number, height: number): void;
        setMoveTo(x: number, y: number): void;
        setLineTo(x: number, y: number): void;
        setCurveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void;
        setCubicCurveTo(controlX1: number, controlY1: number, controlX2: number, controlY2: number, anchorX: number, anchorY: number): void;
        setDrawArc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
        setGraphicsClear(): void;
        setZIndex(value: number): void;
        sortChildren(): void;
        setSortableChildren(value: boolean): void;
        setTint(value: number): void;
    }
}
/**
 * @private
 */
declare namespace egret_native {
    /**
     * @private
     */
    const enum NativeObjectType {
        /**
         * 容器
         */
        CONTAINER = 0,
        /**
         * 位图
         */
        BITMAP = 1,
        /**
         * 位图数据
         */
        BITMAP_DATA = 2,
        /**
         * 滤镜
         */
        FILTER = 6,
        /**
         * 文本
         */
        TEXT = 7,
        /**
         * 矢量绘图
         */
        GRAPHICS = 8,
        /**
         * 含一个适量绘图的容器
         */
        SPRITE = 9,
        /**
         * 粒子系统
         */
        PARTICLE_SYSTEM = 10,
        /**
         * 位图文本
         */
        BITMAP_TEXT = 11,
        /**
         * 网格
         */
        MESH = 12,
        /**
         * 舞台（根容器）
         */
        STAGE = 13
    }
}
declare namespace egret {
    /**
     * Bitmap font, texture set of a font. It is generally used as the value of the BitmapText.font attribute.
     * @see http://bbs.egret-labs.org/thread-918-1-1.html TextureMerger
     * @see http://bbs.egret-labs.org/forum.php?mod=viewthread&tid=251 Text(Containing the specific usage of the bitmap font )
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/BitmapFont.ts
     * @language en_US
     */
    /**
     * 位图字体,是一个字体的纹理集，通常作为BitmapText.font属性的值。
     * @see http://bbs.egret-labs.org/thread-918-1-1.html TextureMerger
     * @see http://bbs.egret-labs.org/forum.php?mod=viewthread&tid=251 文本(含位图字体具体用法)
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/BitmapFont.ts
     * @language zh_CN
     */
    class BitmapFont extends SpriteSheet {
        /**
         * Create an egret.BitmapFont object
         * @param texture {egret.Texture} Texture set that use TextureMerger create
         * @param config {any} Configure data that use TextureMerger create
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.BitmapFont 对象
         * @param texture {egret.Texture} 使用TextureMerger生成的纹理集
         * @param config {any} 使用TextureMerger生成的配置数据
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(texture: Texture, config: any);
        /**
         * @private
         */
        private charList;
        /**
         * Obtain corresponding texture through the name attribute
         * @param name {string} name Attribute
         * @returns {egret.Texture}
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 通过 name 属性获取对应纹理
         * @param name {string} name属性
         * @returns {egret.Texture}
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        getTexture(name: string): Texture;
        /**
         * @private
         */
        getConfig(name: string, key: string): number;
        /**
         * @private
         */
        private firstCharHeight;
        /**
         * @private
         *
         * @returns
         */
        _getFirstCharHeight(): number;
        /**
         * @private
         *
         * @param fntText
         * @returns
         */
        private parseConfig;
        /**
         * @private
         *
         * @param configText
         * @param key
         * @returns
         */
        private getConfigByKey;
    }
}
declare namespace egret {
    /**
     * The VerticalAlign class defines the possible values for the vertical alignment.
     * @see egret.TextField#verticalAlign
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * VerticalAlign 类为垂直对齐方式定义可能的值。
     * @see egret.TextField#verticalAlign
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class VerticalAlign {
        /**
         * Vertically align content to the top of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将内容与容器的顶部对齐。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static TOP: string;
        /**
         * Vertically align content to the bottom of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将内容与容器的底部对齐。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static BOTTOM: string;
        /**
         * Vertically align content in the middle of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在容器的垂直中心对齐内容。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static MIDDLE: string;
        /**
         * Vertical alignment with both edges
         * Note: TextFiled does not support this alignment method."
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 垂直两端对齐
         * 注意：TextFiled不支持此对齐方式。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static JUSTIFY: string;
        /**
         * Align the content of the child items, relative to the container. This operation will adjust uniformly the size of all the child items to be the Content Height \" of the container \".
         * The Content Height \" of the container \" is the size of the max. child item. If the size of all child items are less than the height of the container, they will be adjusted to the height of the container.
         * Note: TextFiled does not support this alignment method.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 相对于容器对子项进行内容对齐。这会将所有子项的大小统一调整为容器的"内容高度"。
         * 容器的"内容高度"是最大子项的大小,如果所有子项都小于容器的高度，则会将所有子项的大小调整为容器的高度。
         * 注意：TextFiled不支持此对齐方式。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static CONTENT_JUSTIFY: string;
    }
}
declare namespace egret {
    /**
     * The HorizontalAlign class defines the possible values for the horizontal alignment.
     * @see egret.TextField#textAlign
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * HorizontalAlign 类为水平对齐方式定义可能的值。
     * @see egret.TextField#textAlign
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class HorizontalAlign {
        /**
         * Horizontally align content to the left of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将内容与容器的左侧对齐。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static LEFT: string;
        /**
         * Horizontally align content to the right of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将内容与容器的右侧对齐。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static RIGHT: string;
        /**
         * Horizontally align content in the center of the container.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在容器的水平中心对齐内容。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static CENTER: string;
        /**
         * Horizontal alignment with both edges.
         * Note: TextFiled does not support this alignment method.
         * @constant egret.HorizontalAlign.JUSTIFY
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 水平两端对齐。
         * 注意：TextFiled不支持此对齐方式。
         * @constant egret.HorizontalAlign.JUSTIFY
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static JUSTIFY: string;
        /**
         * Align the content of the child items, relative to the container. This operation will adjust uniformly the size of all the child items to be the Content Width \" of the container \".
         * The Content Width \" of the container \" is the size of the max. child item. If the size of all child items are less than the width of the container, they will be adjusted to the width of the container.
         * Note: TextFiled does not support this alignment method.
         * @constant egret.HorizontalAlign.CONTENT_JUSTIFY
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 相对于容器对子项进行内容对齐。这会将所有子项的大小统一调整为容器的"内容宽度"。
         * 容器的"内容宽度"是最大子项的大小,如果所有子项都小于容器的宽度，则会将所有子项的大小调整为容器的宽度。
         * 注意：TextFiled不支持此对齐方式。
         * @constant egret.HorizontalAlign.CONTENT_JUSTIFY
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static CONTENT_JUSTIFY: string;
    }
}
declare namespace egret {
    /**
     * Bitmap font adopts the Bitmap+SpriteSheet mode to render text.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/BitmapText.ts
     * @language en_US
     */
    /**
     * 位图字体采用了Bitmap+SpriteSheet的方式来渲染文字。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/BitmapText.ts
     * @language zh_CN
     */
    class BitmapText extends DisplayObject {
        /**
         * Create an egret.BitmapText object
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 创建一个 egret.BitmapText 对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor();
        protected createNativeDisplayObject(): void;
        private $smoothing;
        /**
         * Whether or not is smoothed when scaled.
         * @default true。
         * @version Egret 3.0
         * @platform Web
         * @language en_US
         */
        /**
         * 控制在缩放时是否进行平滑处理。
         * @default true。
         * @version Egret 3.0
         * @platform Web
         * @language zh_CN
         */
        get smoothing(): boolean;
        set smoothing(value: boolean);
        private $text;
        /**
         * A string to display in the text field.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 要显示的文本内容
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get text(): string;
        set text(value: string);
        /**
         * @private
         */
        $setText(value: string): boolean;
        protected $textFieldWidth: number;
        /**
         * @private
         */
        $getWidth(): number;
        /**
         * @private
         */
        $setWidth(value: number): boolean;
        private $textLinesChanged;
        /**
         * @private
         */
        $invalidateContentBounds(): void;
        protected $textFieldHeight: number;
        /**
         * @private
         */
        $getHeight(): number;
        /**
         * @private
         */
        $setHeight(value: number): boolean;
        protected $font: BitmapFont;
        protected $fontStringChanged: boolean;
        /**
         * The name of the font to use, or a comma-separated list of font names, the type of value must be BitmapFont.
         * @default null
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 要使用的字体的名称或用逗号分隔的字体名称列表，类型必须是 BitmapFont。
         * @default null
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get font(): Object;
        set font(value: Object);
        $setFont(value: any): boolean;
        private $lineSpacing;
        /**
         /**
         * An integer representing the amount of vertical space between lines.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个整数，表示行与行之间的垂直间距量
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get lineSpacing(): number;
        set lineSpacing(value: number);
        $setLineSpacing(value: number): boolean;
        private $letterSpacing;
        /**
         * An integer representing the amount of distance between characters.
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个整数，表示字符之间的距离。
         * @default 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get letterSpacing(): number;
        set letterSpacing(value: number);
        $setLetterSpacing(value: number): boolean;
        private $textAlign;
        /**
         * Horizontal alignment of text.
         * @default：egret.HorizontalAlign.LEFT
         * @version Egret 2.5.6
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本的水平对齐方式。
         * @default：egret.HorizontalAlign.LEFT
         * @version Egret 2.5.6
         * @platform Web,Native
         * @language zh_CN
         */
        get textAlign(): string;
        set textAlign(value: string);
        $setTextAlign(value: string): boolean;
        private $verticalAlign;
        /**
         * Vertical alignment of text.
         * @default：egret.VerticalAlign.TOP
         * @version Egret 2.5.6
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文字的垂直对齐方式。
         * @default：egret.VerticalAlign.TOP
         * @version Egret 2.5.6
         * @platform Web,Native
         * @language zh_CN
         */
        get verticalAlign(): string;
        set verticalAlign(value: string);
        $setVerticalAlign(value: string): boolean;
        /**
         * A ratio of the width of the space character. This value is multiplied by the height of the first character is the space character width.
         * @default 0.33
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 一个空格字符的宽度比例。这个数值乘以第一个字符的高度即为空格字符的宽。
         * @default 0.33
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static EMPTY_FACTOR: number;
        /**
         * @private
         */
        $updateRenderNode(): void;
        /**
         * @private
         */
        $measureContentBounds(bounds: Rectangle): void;
        private $textWidth;
        /**
         * Get the BitmapText measured width
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取位图文本测量宽度
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textWidth(): number;
        private $textHeight;
        /**
         * Get Text BitmapText height
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 获取位图文本测量高度
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get textHeight(): number;
        /**
         * @private
         */
        private $textOffsetX;
        /**
         * @private
         */
        private $textOffsetY;
        /**
         * @private
         */
        private $textStartX;
        /**
         * @private
         */
        private $textStartY;
        /**
         * @private
         */
        private textLines;
        /**
         * @private 每一行文字的宽度
         */
        private $textLinesWidth;
        /**
         * @private
         */
        $lineHeights: number[];
        /**
         * @private
         *
         * @returns
         */
        $getTextLines(): string[];
    }
}
declare namespace egret.sys {
    let fontResourceCache: {
        [url: string]: any;
    };
    function registerFontMapping(name: string, path: string): void;
}
declare namespace egret {
    /**
     * Register font mapping.
     * @param name The font family name to register.
     * @param path The font path.
     * @version Egret 5.3
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 注册字体映射
     * @param name 要注册的字体名称
     * @param path 注册的字体地址
     * @version Egret 5.3
     * @platform Web,Native
     * @language zh_CN
     */
    function registerFontMapping(name: string, path: string): void;
}
declare namespace egret {
    /**
     * Convert the text in html format to the object that can be assigned to the egret.TextField#textFlow property
     * @see http://edn.egret.com/cn/docs/page/146 Text mixed in a variety of style
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/HtmlTextParser.ts
     * @language en_US
     */
    /**
     * 将html格式文本转换为可赋值给 egret.TextField#textFlow 属性的对象
     * @see http://edn.egret.com/cn/docs/page/146 多种样式文本混合
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/text/HtmlTextParser.ts
     * @language zh_CN
     */
    class HtmlTextParser {
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        constructor();
        private replaceArr;
        private initReplaceArr;
        /**
         * @private
         *
         * @param value
         * @returns
         */
        private replaceSpecial;
        /**
         * @private
         */
        private resutlArr;
        /**
         * Convert the text in html format to the object that can be assigned to the egret.TextField#textFlow property
         * @param htmltext {string} Text in html
         * @returns {Array<egret.ITextElement>} 可赋值给 egret.TextField#textFlow Object that can be assigned to the egret.TextField#textFlow property
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将html格式文本转换为可赋值给 egret.TextField#textFlow 属性的对象
         * @param htmltext {string} html文本
         * @returns {Array<egret.ITextElement>} 可赋值给 egret.TextField#textFlow 属性的对象
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        parse(htmltext: string): egret.ITextElement[];
        parser(htmltext: string): Array<egret.ITextElement>;
        /**
         * @private
         *
         * @param value
         */
        private addToResultArr;
        private changeStringToObject;
        /**
         * @private
         *
         * @returns
         */
        private getHeadReg;
        /**
         * @private
         *
         * @param info
         * @param head
         * @param value
         */
        private addProperty;
        /**
         * @private
         */
        private stackArray;
        /**
         * @private
         *
         * @param infoStr
         */
        private addToArray;
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    class InputController extends HashObject {
        static typingShow: boolean;
        /**
         * @private
         */
        stageText: egret.StageText;
        /**
         * @private
         */
        private stageTextAdded;
        /**
         * @private
         */
        private _text;
        /**
         * @private
         */
        private _isFocus;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        constructor();
        /**
         *
         * @param text
         * @version Egret 2.4
         * @platform Web,Native
         */
        init(text: TextField): void;
        /**
         * @private
         *
         */
        _addStageText(): void;
        /**
         * @private
         *
         */
        _removeStageText(): void;
        /**
         * @private
         *
         * @returns
         */
        _getText(): string;
        /**
         * @private
         *
         * @param value
         */
        _setText(value: string): void;
        /**
         * @private
         */
        _setColor(value: number): void;
        /**
         * @private
         *
         * @param event
         */
        private focusHandler;
        /**
         * @private
         *
         * @param event
         */
        private blurHandler;
        private tempStage;
        private onMouseDownHandler;
        private onMouseMoveHandler;
        $onFocus(active?: boolean): void;
        private onStageDownHandler;
        /**
         * @private
         *
         * @param event
         */
        private updateTextHandler;
        /**
         * @private
         *
         */
        private resetText;
        /**
         * @private
         *
         */
        _hideInput(): void;
        /**
         * @private
         *
         */
        private updateInput;
        /**
         * @private
         *
         */
        _updateProperties(): void;
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    interface IHitTextElement {
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        lineIndex: number;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        textElementIndex: number;
    }
    /**
     * Text Style
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 文本样式
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface ITextStyle {
        /**
         * text color
         * @version Egret 2.4
         * @platform Web,Native
         * @see http://edn.egret.com/cn/docs/page/146 多种样式混合文本的基本结构
         * @language en_US
         */
        /**
         * 颜色值
         * @version Egret 2.4
         * @platform Web,Native
         * @see http://edn.egret.com/cn/docs/page/146 多种样式混合文本的基本结构
         * @language zh_CN
         */
        textColor?: number;
        /**
         * stroke color
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 描边颜色值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        strokeColor?: number;
        /**
         * size
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 字号
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        size?: number;
        /**
         * stroke width
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 描边大小
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        stroke?: number;
        /**
         * whether bold
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否加粗
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        bold?: boolean;
        /**
         * whether italic
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否倾斜
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        italic?: boolean;
        /**
         * fontFamily
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 字体名称
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        fontFamily?: string;
        /**
         * Link events or address
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 链接事件或者地址
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        href?: string;
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        target?: string;
        /**
         * Is underlined
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 是否加下划线
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        underline?: boolean;
        /**batchInfo*/ batchInfos: any;
        tag: string;
        tagEnd: string;
    }
    /**
     * Used to build the basic structure of text with a variety of mixed styles, mainly for setting textFlow property
     * @see http://edn.egret.com/cn/docs/page/146 Text mixed in a variety of style
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 用于建立多种样式混合文本的基本结构，主要用于设置 textFlow 属性
     * @see http://edn.egret.com/cn/docs/page/146 多种样式文本混合
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface ITextElement {
        /**
         * String Content
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 字符串内容
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        text: string;
        /**
         * Text Style
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本样式
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        style?: ITextStyle;
    }
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    interface IWTextElement extends ITextElement {
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        width: number;
    }
    /**
     * 文本最终解析的一行数据格式
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    interface ILineElement {
        /**
         * 文本占用宽度
         * @version Egret 2.4
         * @platform Web,Native
         */
        width: number;
        /**
         * 文本占用高度
         * @version Egret 2.4
         * @platform Web,Native
         */
        height: number;
        /**
         * 当前文本字符总数量（包括换行符）
         * @version Egret 2.4
         * @platform Web,Native
         */
        charNum: number;
        /**
         * 是否含有换行符
         * @version Egret 2.4
         * @platform Web,Native
         */
        hasNextLine: boolean;
        /**
         * 本行文本内容
         * @version Egret 2.4
         * @platform Web,Native
         */
        elements: Array<IWTextElement>;
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    interface StageText extends EventDispatcher {
        /**
         * @private
         */
        $textfield: egret.TextField;
        /**
         * @private
         *
         * @param textfield
         */
        $setTextField(textfield: egret.TextField): boolean;
        /**
         * @private
         *
         */
        $resetStageText(): void;
        /**
         * @private
         *
         * @returns
         */
        $getText(): string;
        /**
         * @private
         *
         * @param value
         */
        $setText(value: string): boolean;
        /**
         * @private
         *
         * @param value
         */
        $setColor(value: number): boolean;
        /**
         * @private
         *
         */
        $show(active?: boolean): void;
        /**
         * @private
         *
         */
        $hide(): void;
        /**
         * @private
         *
         */
        $addToStage(): void;
        /**
         * @private
         *
         */
        $removeFromStage(): void;
        /**
         * @private
         *
         */
        $onBlur(): void;
    }
    /**
     * @version Egret 2.4
     * @platform Web,Native
     */
    let StageText: {
        new (): StageText;
    };
}
declare namespace egret {
    /**
     * TextFieldInputType class is an enumeration of constant value used in setting the inputType property of the TextField class.
     * @version Egret 3.1.2
     * @platform Web,Native
     * @language en_US
     */
    /**
     * TextFieldInputType 类是在设置 TextField 类的 inputType 属性时使用的常数值的枚举。
     * @version Egret 3.1.2
     * @platform Web,Native
     * @language zh_CN
     */
    class TextFieldInputType {
        /**
         * The default
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 默认 input 类型
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language zh_CN
         */
        static TEXT: string;
        /**
         * Telephone Number Inputs
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 电话号码 input 类型
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language zh_CN
         */
        static TEL: string;
        /**
         * Password Inputs
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language en_US
         */
        /**
         * password 类型
         * @version Egret 3.1.2
         * @platform Web,Native
         * @language zh_CN
         */
        static PASSWORD: string;
    }
}
declare namespace egret {
    /**
     * TextFieldType class is an enumeration of constant value used in setting the type property of the TextField class.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * TextFieldType 类是在设置 TextField 类的 type 属性时使用的常数值的枚举。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class TextFieldType {
        /**
         * Used to specify dynamic text
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于指定动态文本
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static DYNAMIC: string;
        /**
         * Used to specify the input text
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 用于指定输入文本
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static INPUT: string;
    }
}
declare namespace egret {
    /**
     * @private
     * @version Egret 2.4
     * @platform Web,Native
     */
    class TextFieldUtils {
        /**
         * 获取第一个绘制的行数
         * @param textfield 文本
         * @returns {number} 行数，从0开始
         * @private
         */
        static $getStartLine(textfield: egret.TextField): number;
        /**
         * 获取水平比例
         * @param textfield 文本
         * @returns {number} 水平比例
         * @private
         */
        static $getHalign(textfield: egret.TextField): number;
        /**
         * @private
         *
         * @param textfield
         * @returns
         */
        static $getTextHeight(textfield: egret.TextField): number;
        /**
         * 获取垂直比例
         * @param textfield 文本
         * @returns {number} 垂直比例
         * @private
         */
        static $getValign(textfield: egret.TextField): number;
        /**
         * 根据x、y获取文本项
         * @param textfield 文本
         * @param x x坐标值
         * @param y y坐标值
         * @returns 文本单项
         * @private
         */
        static $getTextElement(textfield: egret.TextField, x: number, y: number): ITextElement;
        /**
         * 获取文本点击块
         * @param textfield 文本
         * @param x x坐标值
         * @param y y坐标值
         * @returns 文本点击块
         * @private
         */
        static $getHit(textfield: egret.TextField, x: number, y: number): IHitTextElement;
        /**
         * 获取当前显示多少行
         * @param textfield 文本
         * @returns {number} 显示的行数
         * @private
         */
        static $getScrollNum(textfield: egret.TextField): number;
    }
}
/**
 * @private
 */
declare namespace egret.sys {
    /**
     * 测量文本在指定样式下的宽度。
     * @param text 要测量的文本内容。
     * @param fontFamily 字体名称
     * @param fontSize 字体大小
     * @param bold 是否粗体
     * @param italic 是否斜体
     */
    let measureText: (text: string, fontFamily: string, fontSize: number, bold: boolean, italic: boolean) => number;
}
declare namespace egret.web {
    /**
     * @classdesc
     * @extends egret.StageText
     * @private
     */
    class HTML5StageText extends EventDispatcher implements StageText {
        /**
         * @private
         */
        private htmlInput;
        /**
         * @private
         */
        constructor();
        /**
         * @private
         */
        $textfield: egret.TextField;
        /**
         * @private
         *
         * @param textfield
         */
        $setTextField(textfield: egret.TextField): boolean;
        /**
         * @private
         */
        private _isNeedShow;
        /**
         * @private
         */
        private inputElement;
        /**
         * @private
         */
        private inputDiv;
        /**
         * @private
         */
        private _gscaleX;
        /**
         * @private
         */
        private _gscaleY;
        /**
         * @private
         *
         */
        $addToStage(): void;
        /**
         * @private
         *
         */
        private _initElement;
        /**
         * @private
         *
         */
        $show(active?: boolean): void;
        activeShowKeyboard(): void;
        /**
         * @private
         *
         */
        private onBlurHandler;
        /**
         * @private
         *
         */
        private onFocusHandler;
        /**
         * @private
         *
         */
        private executeShow;
        /**
         * @private
         */
        $hide(): void;
        /**
         * @private
         */
        private textValue;
        /**
         * @private
         *
         * @returns
         */
        $getText(): string;
        /**
         * @private
         *
         * @param value
         */
        $setText(value: string): boolean;
        /**
         * @private
         *
         */
        private resetText;
        /**
         * @private
         */
        private colorValue;
        $setColor(value: number): boolean;
        /**
         * @private
         *
         */
        private resetColor;
        $onBlur(): void;
        /**
         * @private
         *
         */
        _onInput(): void;
        private setAreaHeight;
        /**
         * @private
         *
         * @param e
         */
        _onClickHandler(e: any): void;
        /**
         * @private
         *
         */
        _onDisconnect(): void;
        /**
         * @private
         */
        private _styleInfoes;
        /**
         * @private
         *
         * @param style
         * @param value
         */
        private setElementStyle;
        /**
         * @private
         *
         */
        $removeFromStage(): void;
        /**
         * 修改位置
         * @private
         */
        $resetStageText(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class HTMLInput {
        /**
         * @private
         */
        private _stageText;
        /**
         * @private
         */
        private _simpleElement;
        /**
         * @private
         */
        private _multiElement;
        /**
         * @private
         */
        private _inputElement;
        /**
         * @private
         */
        _inputDIV: any;
        /**
         * @private
         *
         * @returns
         */
        isInputOn(): boolean;
        /**
         * @private
         *
         * @param stageText
         * @returns
         */
        isCurrentStageText(stageText: any): boolean;
        /**
         * @private
         *
         * @param dom
         */
        private initValue;
        /**
         * @private
         */
        _needShow: boolean;
        /**
         * @private
         */
        $scaleX: number;
        /**
         * @private
         */
        $scaleY: number;
        /**
         * @private
         *
         */
        $updateSize(): void;
        /**
         * @private
         */
        private StageDelegateDiv;
        /**
         * @private
         */
        private canvas;
        /**
         * @private
         *
         * @param container
         * @param canvas
         * @returns
         */
        _initStageDelegateDiv(container: any, canvas: any): any;
        private stageTextClickHandler;
        initInputElement(multiline: boolean): void;
        /**
         * @private
         *
         */
        show(): void;
        /**
         * @private
         *
         * @param stageText
         */
        disconnectStageText(stageText: any): void;
        /**
         * @private
         *
         */
        clearInputElement(): void;
        /**
         * @private
         *
         * @param stageText
         * @returns
         */
        getInputElement(stageText: any): HTMLInputElement | HTMLTextAreaElement;
        finishUserTyping: Function;
        /**
         * @private
         */
        blurInputElement(): void;
        /**
         * @private
         */
        disposeInputElement(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * 获取
     */
    function $getTextAdapter(textfield: TextField): HTMLInput;
    /**
     * @private
     */
    function $cacheTextAdapter(adapter: HTMLInput, stage: any, container: HTMLDivElement, canvas: any): void;
}
declare namespace egret.web {
}
declare namespace egret {
    /**
    * @language en_US
    * The Base64Util class provides methods for encoding and decoding base64.
    * @version Egret 2.4
    * @platform Web,Native
    * @includeExample egret/utils/Base64Util.ts
    */
    /**
     * @language zh_CN
     * Base64Util 类提供用于编解码base64的方法。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/Base64Util.ts
     */
    class Base64Util {
        /**
         * @language en_US
         * encode base64.
         * @version Egret 2.4
         * @platform Web,Native
         */
        /**
         * @language zh_CN
         * 编码base64。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static encode(arraybuffer: ArrayBuffer): string;
        /**
         * @language en_US
         * decode base64.
         * @version Egret 2.4
         * @platform Web,Native
         */
        /**
         * @language zh_CN
         * 解码base64。
         * @version Egret 2.4
         * @platform Web,Native
         */
        static decode(base64: string): ArrayBuffer;
    }
}
/**
 * @private
 */
declare let chars: string;
/**
 * @private
 */
declare let lookup: Uint8Array;
declare namespace egret {
    /**
     * The Endian class contains values that denote the byte order used to represent multibyte numbers.
     * The byte order is either bigEndian (most significant byte first) or littleEndian (least significant byte first).
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * Endian 类中包含一些值，它们表示用于表示多字节数字的字节顺序。
     * 字节顺序为 bigEndian（最高有效字节位于最前）或 littleEndian（最低有效字节位于最前）。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class Endian {
        /**
         * Indicates the least significant byte of the multibyte number appears first in the sequence of bytes.
         * The hexadecimal number 0x12345678 has 4 bytes (2 hexadecimal digits per byte). The most significant byte is 0x12. The least significant byte is 0x78. (For the equivalent decimal number, 305419896, the most significant digit is 3, and the least significant digit is 6).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示多字节数字的最低有效字节位于字节序列的最前面。
         * 十六进制数字 0x12345678 包含 4 个字节（每个字节包含 2 个十六进制数字）。最高有效字节为 0x12。最低有效字节为 0x78。（对于等效的十进制数字 305419896，最高有效数字是 3，最低有效数字是 6）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static LITTLE_ENDIAN: string;
        /**
         * Indicates the most significant byte of the multibyte number appears first in the sequence of bytes.
         * The hexadecimal number 0x12345678 has 4 bytes (2 hexadecimal digits per byte).  The most significant byte is 0x12. The least significant byte is 0x78. (For the equivalent decimal number, 305419896, the most significant digit is 3, and the least significant digit is 6).
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 表示多字节数字的最高有效字节位于字节序列的最前面。
         * 十六进制数字 0x12345678 包含 4 个字节（每个字节包含 2 个十六进制数字）。最高有效字节为 0x12。最低有效字节为 0x78。（对于等效的十进制数字 305419896，最高有效数字是 3，最低有效数字是 6）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static BIG_ENDIAN: string;
    }
    const enum EndianConst {
        LITTLE_ENDIAN = 0,
        BIG_ENDIAN = 1
    }
    /**
     * The ByteArray class provides methods and attributes for optimized reading and writing as well as dealing with binary data.
     * Note: The ByteArray class is applied to the advanced developers who need to access data at the byte layer.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/ByteArray.ts
     * @language en_US
     */
    /**
     * ByteArray 类提供用于优化读取、写入以及处理二进制数据的方法和属性。
     * 注意：ByteArray 类适用于需要在字节层访问数据的高级开发人员。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/ByteArray.ts
     * @language zh_CN
     */
    class ByteArray {
        /**
         * @private
         */
        protected bufferExtSize: number;
        protected data: DataView;
        protected _bytes: Uint8Array;
        /**
         * @private
         */
        protected _position: number;
        /**
         *
         * 已经使用的字节偏移量
         * @protected
         * @type {number}
         * @memberOf ByteArray
         */
        protected write_position: number;
        /**
         * Changes or reads the byte order; egret.EndianConst.BIG_ENDIAN or egret.EndianConst.LITTLE_EndianConst.
         * @default egret.EndianConst.BIG_ENDIAN
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 更改或读取数据的字节顺序；egret.EndianConst.BIG_ENDIAN 或 egret.EndianConst.LITTLE_ENDIAN。
         * @default egret.EndianConst.BIG_ENDIAN
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get endian(): string;
        set endian(value: string);
        protected $endian: EndianConst;
        /**
         * @version Egret 2.4
         * @platform Web,Native
         */
        constructor(buffer?: ArrayBuffer | Uint8Array, bufferExtSize?: number);
        /**
         * @deprecated
         * @version Egret 2.4
         * @platform Web,Native
         */
        setArrayBuffer(buffer: ArrayBuffer): void;
        /**
         * 可读的剩余字节数
         *
         * @returns
         *
         * @memberOf ByteArray
         */
        get readAvailable(): number;
        get buffer(): ArrayBuffer;
        get rawBuffer(): ArrayBuffer;
        /**
         * @private
         */
        set buffer(value: ArrayBuffer);
        get bytes(): Uint8Array;
        /**
         * @private
         * @version Egret 2.4
         * @platform Web,Native
         */
        get dataView(): DataView;
        /**
         * @private
         */
        set dataView(value: DataView);
        /**
         * @private
         */
        get bufferOffset(): number;
        /**
         * The current position of the file pointer (in bytes) to move or return to the ByteArray object. The next time you start reading reading method call in this position, or will start writing in this position next time call a write method.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将文件指针的当前位置（以字节为单位）移动或返回到 ByteArray 对象中。下一次调用读取方法时将在此位置开始读取，或者下一次调用写入方法时将在此位置开始写入。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get position(): number;
        set position(value: number);
        /**
         * The length of the ByteArray object (in bytes).
                  * If the length is set to be larger than the current length, the right-side zero padding byte array.
                  * If the length is set smaller than the current length, the byte array is truncated.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * ByteArray 对象的长度（以字节为单位）。
         * 如果将长度设置为大于当前长度的值，则用零填充字节数组的右侧。
         * 如果将长度设置为小于当前长度的值，将会截断该字节数组。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get length(): number;
        set length(value: number);
        protected _validateBuffer(value: number): void;
        /**
         * The number of bytes that can be read from the current position of the byte array to the end of the array data.
         * When you access a ByteArray object, the bytesAvailable property in conjunction with the read methods each use to make sure you are reading valid data.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 可从字节数组的当前位置到数组末尾读取的数据的字节数。
         * 每次访问 ByteArray 对象时，将 bytesAvailable 属性与读取方法结合使用，以确保读取有效的数据。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get bytesAvailable(): number;
        /**
         * Clears the contents of the byte array and resets the length and position properties to 0.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 清除字节数组的内容，并将 length 和 position 属性重置为 0。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        clear(): void;
        /**
         * Read a Boolean value from the byte stream. Read a simple byte. If the byte is non-zero, it returns true; otherwise, it returns false.
         * @return If the byte is non-zero, it returns true; otherwise, it returns false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取布尔值。读取单个字节，如果字节非零，则返回 true，否则返回 false
         * @return 如果字节不为零，则返回 true，否则返回 false
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readBoolean(): boolean;
        /**
         * Read signed bytes from the byte stream.
         * @return An integer ranging from -128 to 127
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取带符号的字节
         * @return 介于 -128 和 127 之间的整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readByte(): number;
        /**
         * Read data byte number specified by the length parameter from the byte stream. Starting from the position specified by offset, read bytes into the ByteArray object specified by the bytes parameter, and write bytes into the target ByteArray
         * @param bytes ByteArray object that data is read into
         * @param offset Offset (position) in bytes. Read data should be written from this position
         * @param length Byte number to be read Default value 0 indicates reading all available data
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取 length 参数指定的数据字节数。从 offset 指定的位置开始，将字节读入 bytes 参数指定的 ByteArray 对象中，并将字节写入目标 ByteArray 中
         * @param bytes 要将数据读入的 ByteArray 对象
         * @param offset bytes 中的偏移（位置），应从该位置写入读取的数据
         * @param length 要读取的字节数。默认值 0 导致读取所有可用的数据
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readBytes(bytes: ByteArray, offset?: number, length?: number): void;
        /**
         * Read an IEEE 754 double-precision (64 bit) floating point number from the byte stream
         * @return Double-precision (64 bit) floating point number
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个 IEEE 754 双精度（64 位）浮点数
         * @return 双精度（64 位）浮点数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readDouble(): number;
        /**
         * Read an IEEE 754 single-precision (32 bit) floating point number from the byte stream
         * @return Single-precision (32 bit) floating point number
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个 IEEE 754 单精度（32 位）浮点数
         * @return 单精度（32 位）浮点数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readFloat(): number;
        /**
         * Read a 32-bit signed integer from the byte stream.
         * @return A 32-bit signed integer ranging from -2147483648 to 2147483647
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个带符号的 32 位整数
         * @return 介于 -2147483648 和 2147483647 之间的 32 位带符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readInt(): number;
        /**
         * Read a 16-bit signed integer from the byte stream.
         * @return A 16-bit signed integer ranging from -32768 to 32767
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个带符号的 16 位整数
         * @return 介于 -32768 和 32767 之间的 16 位带符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readShort(): number;
        /**
         * Read unsigned bytes from the byte stream.
         * @return A unsigned integer ranging from 0 to 255
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取无符号的字节
         * @return 介于 0 和 255 之间的无符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readUnsignedByte(): number;
        /**
         * Read a 32-bit unsigned integer from the byte stream.
         * @return A 32-bit unsigned integer ranging from 0 to 4294967295
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个无符号的 32 位整数
         * @return 介于 0 和 4294967295 之间的 32 位无符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readUnsignedInt(): number;
        /**
         * Read a 16-bit unsigned integer from the byte stream.
         * @return A 16-bit unsigned integer ranging from 0 to 65535
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个无符号的 16 位整数
         * @return 介于 0 和 65535 之间的 16 位无符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readUnsignedShort(): number;
        /**
         * Read a UTF-8 character string from the byte stream Assume that the prefix of the character string is a short unsigned integer (use byte to express length)
         * @return UTF-8 character string
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个 UTF-8 字符串。假定字符串的前缀是无符号的短整型（以字节表示长度）
         * @return UTF-8 编码的字符串
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readUTF(): string;
        /**
         * Read a UTF-8 byte sequence specified by the length parameter from the byte stream, and then return a character string
         * @param Specify a short unsigned integer of the UTF-8 byte length
         * @return A character string consists of UTF-8 bytes of the specified length
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 从字节流中读取一个由 length 参数指定的 UTF-8 字节序列，并返回一个字符串
         * @param length 指明 UTF-8 字节长度的无符号短整型数
         * @return 由指定长度的 UTF-8 字节组成的字符串
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        readUTFBytes(length: number): string;
        /**
         * Write a Boolean value. A single byte is written according to the value parameter. If the value is true, write 1; if the value is false, write 0.
         * @param value A Boolean value determining which byte is written. If the value is true, write 1; if the value is false, write 0.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 写入布尔值。根据 value 参数写入单个字节。如果为 true，则写入 1，如果为 false，则写入 0
         * @param value 确定写入哪个字节的布尔值。如果该参数为 true，则该方法写入 1；如果该参数为 false，则该方法写入 0
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeBoolean(value: boolean): void;
        /**
         * Write a byte into the byte stream
         * The low 8 bits of the parameter are used. The high 24 bits are ignored.
         * @param value A 32-bit integer. The low 8 bits will be written into the byte stream
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个字节
         * 使用参数的低 8 位。忽略高 24 位
         * @param value 一个 32 位整数。低 8 位将被写入字节流
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeByte(value: number): void;
        /**
         * Write the byte sequence that includes length bytes in the specified byte array, bytes, (starting at the byte specified by offset, using a zero-based index), into the byte stream
         * If the length parameter is omitted, the default length value 0 is used and the entire buffer starting at offset is written. If the offset parameter is also omitted, the entire buffer is written
         * If the offset or length parameter is out of range, they are clamped to the beginning and end of the bytes array.
         * @param bytes ByteArray Object
         * @param offset A zero-based index specifying the position into the array to begin writing
         * @param length An unsigned integer specifying how far into the buffer to write
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将指定字节数组 bytes（起始偏移量为 offset，从零开始的索引）中包含 length 个字节的字节序列写入字节流
         * 如果省略 length 参数，则使用默认长度 0；该方法将从 offset 开始写入整个缓冲区。如果还省略了 offset 参数，则写入整个缓冲区
         * 如果 offset 或 length 超出范围，它们将被锁定到 bytes 数组的开头和结尾
         * @param bytes ByteArray 对象
         * @param offset 从 0 开始的索引，表示在数组中开始写入的位置
         * @param length 一个无符号整数，表示在缓冲区中的写入范围
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeBytes(bytes: ByteArray, offset?: number, length?: number): void;
        /**
         * Write an IEEE 754 double-precision (64 bit) floating point number into the byte stream
         * @param value Double-precision (64 bit) floating point number
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个 IEEE 754 双精度（64 位）浮点数
         * @param value 双精度（64 位）浮点数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeDouble(value: number): void;
        /**
         * Write an IEEE 754 single-precision (32 bit) floating point number into the byte stream
         * @param value Single-precision (32 bit) floating point number
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个 IEEE 754 单精度（32 位）浮点数
         * @param value 单精度（32 位）浮点数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeFloat(value: number): void;
        /**
         * Write a 32-bit signed integer into the byte stream
         * @param value An integer to be written into the byte stream
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个带符号的 32 位整数
         * @param value 要写入字节流的整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeInt(value: number): void;
        /**
         * Write a 16-bit integer into the byte stream. The low 16 bits of the parameter are used. The high 16 bits are ignored.
         * @param value A 32-bit integer. Its low 16 bits will be written into the byte stream
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个 16 位整数。使用参数的低 16 位。忽略高 16 位
         * @param value 32 位整数，该整数的低 16 位将被写入字节流
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeShort(value: number): void;
        /**
         * Write a 32-bit unsigned integer into the byte stream
         * @param value An unsigned integer to be written into the byte stream
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个无符号的 32 位整数
         * @param value 要写入字节流的无符号整数
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeUnsignedInt(value: number): void;
        /**
         * Write a 16-bit unsigned integer into the byte stream
         * @param value An unsigned integer to be written into the byte stream
         * @version Egret 2.5
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 在字节流中写入一个无符号的 16 位整数
         * @param value 要写入字节流的无符号整数
         * @version Egret 2.5
         * @platform Web,Native
         * @language zh_CN
         */
        writeUnsignedShort(value: number): void;
        /**
         * Write a UTF-8 string into the byte stream. The length of the UTF-8 string in bytes is written first, as a 16-bit integer, followed by the bytes representing the characters of the string
         * @param value Character string value to be written
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 UTF-8 字符串写入字节流。先写入以字节表示的 UTF-8 字符串长度（作为 16 位整数），然后写入表示字符串字符的字节
         * @param value 要写入的字符串值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeUTF(value: string): void;
        /**
         * Write a UTF-8 string into the byte stream. Similar to the writeUTF() method, but the writeUTFBytes() method does not prefix the string with a 16-bit length word
         * @param value Character string value to be written
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 将 UTF-8 字符串写入字节流。类似于 writeUTF() 方法，但 writeUTFBytes() 不使用 16 位长度的词为字符串添加前缀
         * @param value 要写入的字符串值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        writeUTFBytes(value: string): void;
        /**
         *
         * @returns
         * @version Egret 2.4
         * @platform Web,Native
         */
        toString(): string;
        /**
         * @private
         * 将 Uint8Array 写入字节流
         * @param bytes 要写入的Uint8Array
         * @param validateBuffer
         */
        _writeUint8Array(bytes: Uint8Array | ArrayLike<number>, validateBuffer?: boolean): void;
        /**
         * @param len
         * @returns
         * @version Egret 2.4
         * @platform Web,Native
         * @private
         */
        validate(len: number): boolean;
        /**********************/
        /**********************/
        /**
         * @private
         * @param len
         * @param needReplace
         */
        protected validateBuffer(len: number): void;
        /**
         * @private
         * UTF-8 Encoding/Decoding
         */
        private encodeUTF8;
        /**
         * @private
         *
         * @param data
         * @returns
         */
        private decodeUTF8;
        /**
         * @private
         *
         * @param code_point
         */
        private encoderError;
        /**
         * @private
         *
         * @param fatal
         * @param opt_code_point
         * @returns
         */
        private decoderError;
        /**
         * @private
         */
        private EOF_byte;
        /**
         * @private
         */
        private EOF_code_point;
        /**
         * @private
         *
         * @param a
         * @param min
         * @param max
         */
        private inRange;
        /**
         * @private
         *
         * @param n
         * @param d
         */
        private div;
        /**
         * @private
         *
         * @param string
         */
        private stringToCodePoints;
    }
}
declare namespace egret {
    /**
     * @private
     */
    let $callLaterFunctionList: any[];
    /**
     * @private
     */
    let $callLaterThisList: any[];
    /**
     * @private
     */
    let $callLaterArgsList: any[];
    /**
     * Delay the function to run unless screen is redrawn.
     * @param method {Function} The function to be delayed to run
     * @param thisObject {any} this reference of callback function
     * @param ...args {any} Function parameter list
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/callLater.ts
     * @language en_US
     */
    /**
     * 延迟函数到屏幕重绘前执行。
     * @param method {Function} 要延迟执行的函数
     * @param thisObject {any} 回调函数的this引用
     * @param ...args {any} 函数参数列表
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/callLater.ts
     * @language zh_CN
     */
    function callLater(method: Function, thisObject: any, ...args: any[]): void;
    /**
     * @private
     */
    let $callAsyncFunctionList: any[];
    /**
     * @private
     */
    let $callAsyncThisList: any[];
    /**
     * @private
     */
    let $callAsyncArgsList: any[];
    /**
     * 异步调用函数
     * @param method {Function} 要异步调用的函数
     * @param thisObject {any} 函数的this引用
     * @param ...args {any} 函数参数列表
     * @private
     */
    function $callAsync(method: Function, thisObject: any, ...args: any[]): void;
}
declare namespace egret {
    /**
     * Call setter properties of the parent class, instead of the other writing languages, such as super.alpha = 1;
     * @param currentClass The current class class name, non-string
     * @param thisObj The current object. Always this
     * @param type Setter property names need to call
     * @param values Value passed to the parent class
     *
     * @exmaple egret.superSetter(egret.Sprite, this, "alpha", 1);
     * @language en_US
     */
    /**
     * 调用父类的setter属性，代替其他语言的写法，如 super.alpha = 1;
     * @param currentClass 当前 class 类名，非字符串
     * @param thisObj 当前对象。永远都this
     * @param type 需要调用的setter属性名称
     * @param values 传给父类的值
     *
     * @exmaple egret.superSetter(egret.Sprite, this, "alpha", 1);
     * @language zh_CN
     */
    function superSetter(currentClass: any, thisObj: any, type: string, ...values: any[]): any;
    /**
     * Get getter property value of the parent class. Instead of writing in other languages, such as super.alpha;
     * @param currentClass The current class class name, non-string
     * @param thisObj The current object. Always this
     * @param type Setter property names need to call
     * @returns {any} The value returned by the parent
     *
     * @exmaple egret.superGetter(egret.Sprite, this, "alpha");
     * @language en_US
     */
    /**
     * 获取父类的getter属性值。代替其他语言的写法，如 super.alpha;
     * @param currentClass 当前 class 类名，非字符串
     * @param thisObj 当前对象。永远都this
     * @param type 需要调用的getter属性名称
     * @returns {any} 父类返回的值
     *
     * @exmaple egret.superGetter(egret.Sprite, this, "alpha");
     * @language zh_CN
     */
    function superGetter(currentClass: any, thisObj: any, type: string): any;
}
declare namespace egret {
    /**
     * Returns a reference to the class object of the class specified by the name parameter.
     * @param name The name of a class.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getDefinitionByName.ts
     * @language en_US
     */
    /**
     * 返回 name 参数指定的类的类对象引用。
     * @param name 类的名称。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getDefinitionByName.ts
     * @language zh_CN
     */
    function getDefinitionByName(name: string): any;
}
declare namespace egret {
    /**
     * Get browser or Runtime parameters, returns an empty string if not set
     * Get the url parameter corresponds to the browser, access to the corresponding parameter in the Runtime setOption
     * @method egret.getOption
     * @param key {string} Parameters key
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 获取浏览器或者Runtime参数，如果没有设置返回空字符串
     * 在浏览器中相当于获取url中参数，在Runtime获取对应setOption参数
     * @method egret.getOption
     * @param key {string} 参数key
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let getOption: (key: string) => string;
}
declare namespace egret {
    /**
     * Return the fully qualified class name of an object
     * @param value The object for which a fully qualified class name is desired. Any JavaScript value may be passed to
     * this method including all available JavaScript types, object instances, primitive types such as number, and class objects.
     * @returns A string containing the fully qualified class name.
     * @example
     * <pre>
     *  egret.getQualifiedClassName(egret.DisplayObject) //return "egret.DisplayObject"
     * </pre>
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getQualifiedClassName.ts
     * @language en_US
     */
    /**
     * 返回对象的完全限定类名。
     * @param value 需要完全限定类名称的对象，可以将任何 JavaScript 值传递给此方法，包括所有可用的 JavaScript 类型、对象实例、原始类型
     * （如number)和类对象
     * @returns 包含完全限定类名称的字符串。
     * @example
     * <pre>
     *  egret.getQualifiedClassName(egret.DisplayObject) //返回 "egret.DisplayObject"
     * </pre>
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getQualifiedClassName.ts
     * @language zh_CN
     */
    function getQualifiedClassName(value: any): string;
}
declare namespace egret {
    /**
     * Returns the fully qualified class name of the base class of the object specified by the value parameter.
     * @param value The object for which a parent class is desired. Any JavaScript value may be passed to this method including
     * all available JavaScript types, object instances, primitive types such as number, and class objects.
     * @returns  A fully qualified base class name, or null if none exists.
     * @example
     * <pre>
     *  egret.getQualifiedSuperclassName(egret.Bitmap) //return "egret.DisplayObject"
     * </pre>
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getQualifiedSuperclassName.ts
     * @language en_US
     */
    /**
     * 返回 value 参数指定的对象的基类的完全限定类名。
     * @param value 需要取得父类的对象，可以将任何 JavaScript 值传递给此方法，包括所有可用的 JavaScript 类型、对象实例、原始类型（如number）和类对象
     * @returns 完全限定的基类名称，或 null（如果不存在基类名称）。
     * @example
     * <pre>
     *  egret.getQualifiedSuperclassName(egret.Sprite) //返回 "egret.DisplayObject"
     * </pre>
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getQualifiedSuperclassName.ts
     * @language zh_CN
     */
    function getQualifiedSuperclassName(value: any): string;
}
declare namespace egret {
    /**
     * Used to compute relative time.this method returns the number of milliseconds since the Egret framework was initialized
     * @returns The number of milliseconds since the Egret framework was initialized
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getTimer.ts
     * @language en_US
     */
    /**
     * 用于计算相对时间。此方法返回自启动 Egret 框架以来经过的毫秒数。
     * @returns 启动 Egret 框架以来经过的毫秒数。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/getTimer.ts
     * @language zh_CN
     */
    function getTimer(): number;
}
declare namespace egret {
    /**
     * Check whether a public definition exists in the specified application domain. The definition can be that of a class, a naming space or a function.
     * @param name {string} Name of the definition.
     * @returns {boolean} Whether the public definition exists
     * @example
     * egret.hasDefinition("egret.DisplayObject") //return true
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/hasDefinition.ts
     * @language en_US
     */
    /**
     * 检查指定的应用程序域之内是否存在一个公共定义。该定义可以是一个类、一个命名空间或一个函数的定义。
     * @param name {string} 定义的名称。
     * @returns {boolean} 公共定义是否存在
     * @example
     * egret.hasDefinition("egret.DisplayObject") //返回 true
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/hasDefinition.ts
     * @language zh_CN
     */
    function hasDefinition(name: string): boolean;
}
declare namespace egret {
    /**
     * Indicates whether an object is a instance of the class or interface specified as the parameter.This method has better performance
     * compared width the instanceOf operator,and it can indicate whether an object is a instance of the specific interface.
     * @param instance the instance to be checked.
     * @param typeName the string value representing a specific class or interface.
     * @returns A value of true if the object is a instance of the class or interface specified as the parameter.
     * @example
     * <pre>
     *     let instance = new egret.Sprite();
     *     egret.log(egret.is(instance,"egret.Sprite"))  //true
     *     egret.log(egret.is(instance,"egret.DisplayObjectContainer"))  //true
     *     egret.log(egret.is(instance,"egret.Bitmap"))  //false
     * </pre>
     * @see egret.registerClass()
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 检查指定对象是否为 Egret 框架内指定接口或类或其子类的实例。此方法与使用 instanceOf 关键字相比具有更高的性能，并且能判断接口的实现。
     * @param instance 要判断的实例。
     * @param typeName 类或接口的完全名称.
     * @returns 返回true表示当前对象是指定类或接口的实例。
     * @example
     * <pre>
     *     let instance = new egret.Sprite();
     *     egret.log(egret.is(instance,"egret.Sprite"))  //true
     *     egret.log(egret.is(instance,"egret.DisplayObjectContainer"))  //true
     *     egret.log(egret.is(instance,"egret.Bitmap"))  //false
     * </pre>
     * @see egret.registerClass()
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    function is(instance: any, typeName: string): boolean;
}
declare namespace egret {
    /**
     * Logger is an entrance for the log processing namespace of the engine
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * Logger是引擎的日志处理模块入口
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    class Logger {
        /**
         * open all
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 全开
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ALL: string;
        /**
         * level: DEBUG
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 等级为 DEBUG
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static DEBUG: string;
        /**
         * level: INFO
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 等级为 INFO
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static INFO: string;
        /**
         * level: WARN
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 等级为 WARN
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static WARN: string;
        /**
         * level: ERROR
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 等级为 ERROR
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static ERROR: string;
        /**
         * close all
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 全关
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static OFF: string;
        /**
         * Set the current need to open the log level. Grade level are: ALL <DEBUG <INFO <WARN <ERROR <OFF<br/>
         * This feature is only in DEBUG mode to take effect. <br/>
         * <Ul>
         * <Li> Logger.ALL - all levels of log can be printed out. </ li>
         * <Li> Logger.DEBUG - print debug, info, log, warn, error. </ li>
         * <Li> Logger.INFO - print info, log, warn, error. </ li>
         * <Li> Logger.WARN - can print warn, error. </ li>
         * <Li> Logger.ERROR - You can print error. </ li>
         * <Li> Logger.OFF - all closed. </ li>
         * </ Ul>
         *param LogType from this level to start printing.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设置当前需要开启的log级别。级别等级分别为：ALL < DEBUG < INFO < WARN < ERROR < OFF<br/>
         * 此功能只在 DEBUG 模式下才生效。<br/>
         * <ul>
         * <li>Logger.ALL -- 所有等级的log都可以打印出来。</li>
         * <li>Logger.DEBUG -- 可以打印debug、info、log、warn、error。</li>
         * <li>Logger.INFO -- 可以打印info、log、warn、error。</li>
         * <li>Logger.WARN -- 可以打印warn、error。</li>
         * <li>Logger.ERROR -- 可以打印error。</li>
         * <li>Logger.OFF -- 全部关闭。</li>
         * </ul>
         * @param logType 从这个等级开始打印。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static set logLevel(logType: string);
    }
}
declare namespace egret {
    /**
     * @version Egret 2.4
     * @platform Web,Native
     */
    class NumberUtils {
        /**
         * Judge whether it is a numerical value
         * @param value Parameter that needs to be judged
         * @returns
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 判断是否是数值
         * @param value 需要判断的参数
         * @returns
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static isNumber(value: any): boolean;
        /**
         * Obtain the approximate sin value of the corresponding angle value
         * @param value {number} Angle value
         * @returns {number} sin value
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 得到对应角度值的sin近似值
         * @param value {number} 角度值
         * @returns {number} sin值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static sin(value: number): number;
        /**
         * @private
         *
         * @param value
         * @returns
         */
        private static sinInt;
        /**
         * Obtain the approximate cos value of the corresponding angle value
         * @param value {number} Angle value
         * @returns {number} cos value
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 得到对应角度值的cos近似值
         * @param value {number} 角度值
         * @returns {number} cos值
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        static cos(value: number): number;
        /**
         * @private
         *
         * @param value
         * @returns
         */
        private static cosInt;
        static convertStringToHashCode(str: string): number;
    }
}
/**
 * @private
 */
declare let egret_sin_map: {};
/**
 * @private
 */
declare let egret_cos_map: {};
/**
 * @private
 */
declare let DEG_TO_RAD: number;
declare namespace egret {
    /**
     * Registers the runtime class information for a class.This method adds some strings which represent the class name or
     * some interface names to the class definition. After the registration,you can use egret.is() method to do the type checking
     * for the instance of this class.<br/>
     * Note:If you use the TypeScript programming language, the egret command line tool will automatically generate the registration code line.
     * You don't need to manually call this method.
     *
     * @example the following code shows how to register the runtime class information for the EventDispatcher class and do the type checking:
     * <pre>
     *      egret.registerClass(egret.EventDispatcher,"egret.EventDispatcher",["egret.IEventDispatcher"]);
     *      let dispatcher = new egret.EventDispatcher();
     *      egret.log(egret.is(dispatcher, "egret.IEventDispatcher"));  //true。
     *      egret.log(egret.is(dispatcher, "egret.EventDispatcher"));   //true。
     *      egret.log(egret.is(dispatcher, "egret.Bitmap"));   //false。
     * </pre>
     * @param classDefinition the class definition to be registered.
     * @param className  a unique identification string of the specific class
     * @param interfaceNames a list of unique identification string of the specific interfaces.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 为一个类定义注册运行时类信息,用此方法往类定义上注册它自身以及所有接口对应的字符串。
     * 在运行时，这个类的实例将可以使用 egret.is() 方法传入一个字符串来判断实例类型。
     * @example 以下代码演示了如何为EventDispatcher类注册运行时类信息并判断类型：
     * <pre>
     *      //为egret.EventDispatcher类注册运行时类信息，由于它实现了IEventDispatcher接口，这里应同时传入接口名对应的字符串。
     *      egret.registerClass(egret.EventDispatcher,"egret.EventDispatcher",["egret.IEventDispatcher"]);
     *      let dispatcher = new egret.EventDispatcher();
     *      egret.log(egret.is(dispatcher, "egret.IEventDispatcher"));  //true。
     *      egret.log(egret.is(dispatcher, "egret.EventDispatcher"));   //true。
     *      egret.log(egret.is(dispatcher, "egret.Bitmap"));   //false。
     * </pre>
     * 注意：若您使用 TypeScript 来编写程序，egret 命令行会自动帮您生成类信息注册代码行到最终的 Javascript 文件中。因此您不需要手动调用此方法。
     *
     * @param classDefinition 要注册的类定义。
     * @param className 要注册的类名。
     * @param interfaceNames 要注册的类所实现的接口名列表。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    function registerClass(classDefinition: any, className: string, interfaceNames?: string[]): void;
}
declare namespace egret {
    /**
     * Register and start a timer,which will notify the callback method at a rate of 60 FPS ,and pass the current time stamp as parameters.<br/>
     * Note: After the registration,it will notify the callback method continuously,you can call the stopTick () method to stop it.
     * @param callBack the call back method. the timeStamp parameter of this method represents the number of milliseconds
     * since the Egret framework was initialized. If the return value of this method is true, it will force Egret runtime
     * to render after processing of this method completes.
     * @param thisObject the call back method's "this"
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 注册并启动一个计时器，通常会以60FPS的速率触发回调方法，并传入当前时间戳。注意：注册后将会持续触发回调方法，若要停止回调，需要手动调用stopTick()方法。
     * @param callBack 要执行的回调方法。参数 timeStamp 表示从启动Egret框架开始经过的时间(毫秒)。
     * 若回调方法返回值为true，其作用与TimerEvent.updateAfterEvent()类似，将会忽略帧频限制，在此方法处理完成后立即重绘屏幕。
     * @param thisObject 回调方法的this对象引用。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    function startTick(callBack: (timeStamp: number) => boolean, thisObject: any): void;
}
declare namespace egret {
    /**
     * Stops the timer started by the egret.startTick() method.
     * @param callBack the call back method. the timeStamp parameter of this method represents the number of milliseconds
     * since the Egret framework was initialized. If the return value of this method is true, it will force Egret runtime
     * to render after processing of this method completes.
     * @param thisObject the call back method's "this"
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * 停止之前用 startTick() 方法启动的计时器。
     * @param callBack 要执行的回调方法。参数 timeStamp 表示从启动Egret框架开始经过的时间(毫秒)。
     * 若回调方法返回值为true，其作用与TimerEvent.updateAfterEvent()类似，将会忽略帧频限制，在此方法处理完成后立即重绘屏幕。
     * @param thisObject 回调方法的this对象引用。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    function stopTick(callBack: (timeStamp: number) => boolean, thisObject: any): void;
}
declare namespace egret {
    /**
     * The Timer class is the interface to timers, which let you run code on a specified time sequence. Use the start()
     * method to start a timer. Add an event listener for the timer event to set up code to be run on the timer interval.<br/>
     * You can create Timer objects to run once or repeat at specified intervals to execute code on a schedule. Depending
     * on the framerate or the runtime environment (available memory and other factors), the runtime may dispatchEvent events at
     * slightly offset intervals.
     * @see egret.TimerEvent
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/Timer.ts
     * @language en_US
     */
    /**
     * Timer 类是计时器的接口，它使您能按指定的时间序列运行代码。
     * 使用 start() 方法来启动计时器。为 timer 事件添加事件侦听器，以便将代码设置为按计时器间隔运行。
     * 可以创建 Timer 对象以运行一次或按指定间隔重复运行，从而按计划执行代码。
     * 根据 Egret 的帧速率或运行时环境（可用内存和其他因素），运行时调度事件的间隔可能稍有不同。
     * @see egret.TimerEvent
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/Timer.ts
     * @language zh_CN
     */
    class Timer extends EventDispatcher {
        /**
         * Constructs a new Timer object with the specified delay and repeatCount states.
         * @param delay The delay between timer events, in milliseconds. A delay lower than 20 milliseconds is not recommended.
         * Timer frequency is limited to 60 frames per second, meaning a delay lower than 16.6 milliseconds causes runtime problems.
         * @param repeatCount Specifies the number of repetitions. If zero, the timer repeats indefinitely.If nonzero,
         * the timer runs the specified number of times and then stops.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 使用指定的 delay 和 repeatCount 状态构造新的 Timer 对象。
         * @param delay 计时器事件间的延迟（以毫秒为单位）。建议 delay 不要低于 20 毫秒。计时器频率不得超过 60 帧/秒，这意味着低于 16.6 毫秒的延迟可导致出现运行时问题。
         * @param repeatCount 指定重复次数。如果为零，则计时器将持续不断重复运行。如果不为 0，则将运行计时器，运行次数为指定的次数，然后停止。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        constructor(delay: number, repeatCount?: number);
        /**
         * @private
         */
        private _delay;
        /**
         * The delay between timer events, in milliseconds. A delay lower than 20 milliseconds is not recommended.<br/>
         * Note: Timer frequency is limited to 60 frames per second, meaning a delay lower than 16.6 milliseconds causes runtime problems.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 计时器事件间的延迟（以毫秒为单位）。如果在计时器正在运行时设置延迟间隔，则计时器将按相同的 repeatCount 迭代重新启动。<br/>
         * 注意：建议 delay 不要低于 20 毫秒。计时器频率不得超过 60 帧/秒，这意味着低于 16.6 毫秒的延迟可导致出现运行时问题。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get delay(): number;
        set delay(value: number);
        /**
         * The total number of times the timer is set to run. If the repeat count is set to 0, the timer continues indefinitely,
         * until the stop() method is invoked or the program stops. If the repeat count is nonzero, the timer runs the specified
         * number of times. If repeatCount is set to a total that is the same or less then currentCount the timer stops and will not fire again.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 设置的计时器运行总次数。如果重复计数设置为 0，则计时器将持续不断运行，或直至调用了 stop() 方法或节目停止。
         * 如果重复计数不为 0，则将运行计时器，运行次数为指定的次数。如果设置的 repeatCount 总数等于或小于 currentCount，则计时器将停止并且不会再次触发。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        repeatCount: number;
        /**
         * @private
         */
        private _currentCount;
        /**
         * The total number of times the timer has fired since it started at zero. If the timer has been reset, only the fires since the reset are counted.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 计时器从 0 开始后触发的总次数。如果已重置了计时器，则只会计入重置后的触发次数。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get currentCount(): number;
        /**
         * @private
         */
        private _running;
        /**
         * The timer's current state; true if the timer is running, otherwise false.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 计时器的当前状态；如果计时器正在运行，则为 true，否则为 false。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        get running(): boolean;
        /**
         * Stops the timer, if it is running, and sets the currentCount property back to 0, like the reset button of a stopwatch.
         * Then, when start() is called, the timer instance runs for the specified number of repetitions, as set by the repeatCount value.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果计时器正在运行，则停止计时器，并将 currentCount 属性设回为 0，这类似于秒表的重置按钮。然后，在调用 start() 后，将运行计时器实例，运行次数为指定的重复次数（由 repeatCount 值设置）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        reset(): void;
        /**
         * Starts the timer, if it is not already running.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 如果计时器尚未运行，则启动计时器。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        start(): void;
        /**
         * Stops the timer. When start() is called after stop(), the timer instance runs for the remaining number of
         * repetitions, as set by the repeatCount property.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 停止计时器。如果在调用 stop() 后调用 start()，则将继续运行计时器实例，运行次数为剩余的 重复次数（由 repeatCount 属性设置）。
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        stop(): void;
        /**
         * @private
         */
        private updateInterval;
        /**
         * @private
         */
        private lastCount;
        /**
         * @private
         */
        private lastTimeStamp;
        /**
         * @private
         * Ticker以60FPS频率刷新此方法
         */
        $update(timeStamp: number): boolean;
    }
}
declare namespace egret {
    /**
     * Transfer number to color character string
     * @param value {number} color value ,such as 0xffffff
     * @returns {string} Color character string, for example, #ffffff.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/toColorString.ts
     * @language en_US
     */
    /**
     * 转换数字为颜色字符串
     * @param value {number} 颜色值，例如 0xffffff
     * @returns {string} 颜色字符串，例如"#ffffff"。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/toColorString.ts
     * @language zh_CN
     */
    function toColorString(value: number): string;
}
declare namespace egret.web {
}
declare namespace egret {
    /**
     * The XMLNode class is the base class for all xml node.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * XML节点基类
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface XMLNode {
        /**
         * a integer representing the type of the node, 1：XML，2：XMLAttribute，3：XMLText
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点类型，1：XML，2：XMLAttribute，3：XMLText
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        nodeType: number;
        /**
         * the parent node of this xml node.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点所属的父级节点
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        parent: XML;
    }
    /**
     * The XML class contains properties for working with XML objects.
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/XML.ts
     * @language en_US
     */
    /**
     * XML 类包含用于处理 XML 对象的属性。
     * @version Egret 2.4
     * @platform Web,Native
     * @includeExample egret/utils/XML.ts
     * @language zh_CN
     */
    interface XML extends XMLNode {
        /**
         * the attributes of this xml node.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前节点上的属性列表
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        attributes: any;
        /**
         * the children of the xml node.
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 当前节点的子节点列表
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        children: XMLNode[];
        /**
         * the full name of this xml node. For example,the name of <s:Button/> is "s:Button".
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点完整名称。例如节点 <s:Button/> 的 name 为："s:Button"
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        name: string;
        /**
         * thie namesapce prefix of this xml node.For example,the prefix of <s:Button/> is "s".
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点的命名空间前缀。例如节点 <s:Button/> 的 prefix 为：s
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        prefix: string;
        /**
         * the local name of this xml node. For example,the local name of <s:Button/> is "Button".
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点的本地名称。例如节点 <s:Button/> 的 localName 为：Button
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        localName: string;
        /**
         * the namesapce uri of this xml node.For example,the namespace uri of <s:Skin xmlns:s="http://ns.egret.com/eui"/> is "http://ns.egret.com/eui".
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 节点的命名空间地址。例如节点 <s:Skin xmlns:s="http://ns.egret.com/eui"/> 的 namespace 为： http://ns.egret.com/eui
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        namespace: string;
    }
    /**
     * The XMLText class represents a string node in the XML.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * XMLText 类表示在XML中的文本节点
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    interface XMLText extends XMLNode {
        /**
         * the text content
         * @version Egret 2.4
         * @platform Web,Native
         * @language en_US
         */
        /**
         * 文本内容
         * @version Egret 2.4
         * @platform Web,Native
         * @language zh_CN
         */
        text: string;
    }
    /**
     * The XML class contains properties for working with XML objects.
     * @version Egret 2.4
     * @platform Web,Native
     * @language en_US
     */
    /**
     * XML 类包含用于处理 XML 对象的属性。
     * @version Egret 2.4
     * @platform Web,Native
     * @language zh_CN
     */
    let XML: {
        /**
         * parses a text to XML instance.
         * @param text the text to be parsed.
         * @language en_US
         */
        /**
         * 解析字符串为XML对象
         * @param text 要解析的XML对象。
         * @language zh_CN
         */
        parse(text: string): XML;
    };
}
declare namespace egret.web {
}
declare namespace egret.web {
    /**
     * @private
     */
    class AudioType {
        /**
         * @private
         */
        static WEB_AUDIO: number;
        /**
         * @private
         */
        static HTML5_AUDIO: number;
    }
    /**
     * html5兼容性配置
     * @private
     */
    class Html5Capatibility extends HashObject {
        static _canUseBlob: boolean;
        static _audioType: number;
        /**
         * @private
         */
        static _AudioClass: any;
        /**
         * @private
         */
        constructor();
        /**
         * @private
         */
        private static ua;
        /**
         * @private
         *
         */
        static $init(): void;
        private static setAudioType;
        /**
         * @private
         * 获取ios版本
         * @returns {string}
         */
        private static getIOSVersion;
    }
    /**
     * @private
     */
    function getPrefixStyleName(name: string, element?: any): string;
    /**
     * @private
     */
    function getPrefix(name: string, element: any): string;
}
declare namespace egret.web {
    /**
     * @private
     * Canvas2D渲染缓冲
     */
    class CanvasRenderBuffer implements sys.RenderBuffer {
        constructor(width?: number, height?: number, root?: boolean);
        /**
         * 渲染上下文
         */
        context: CanvasRenderingContext2D;
        /**
         * 呈现最终绘图结果的画布
         */
        surface: HTMLCanvasElement;
        /**
         * 渲染缓冲的宽度，以像素为单位。
         * @readOnly
         */
        get width(): number;
        /**
         * 渲染缓冲的高度，以像素为单位。
         * @readOnly
         */
        get height(): number;
        /**
         * 改变渲染缓冲的大小并清空缓冲区
         * @param width 改变后的宽
         * @param height 改变后的高
         * @param useMaxSize 若传入true，则将改变后的尺寸与已有尺寸对比，保留较大的尺寸。
         */
        resize(width: number, height: number, useMaxSize?: boolean): void;
        /**
         * 获取指定区域的像素
         */
        getPixels(x: number, y: number, width?: number, height?: number): number[];
        /**
         * 转换成base64字符串，如果图片（或者包含的图片）跨域，则返回null
         * @param type 转换的类型，如: "image/png","image/jpeg"
         */
        toDataURL(type?: string, encoderOptions?: number): string;
        /**
         * 清空缓冲区数据
         */
        clear(): void;
        /**
         * 销毁绘制对象
         */
        destroy(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class EgretWebGLAttribute {
        private gl;
        private name;
        private type;
        private size;
        location: number;
        constructor(gl: WebGLRenderingContext, program: WebGLProgram, attributeData: any);
        count: number;
        private initCount;
        format: number;
        private initFormat;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    type ProgramCache = {
        [index: string]: EgretWebGLProgram;
    };
    /**
     * @private
     */
    type Uniforms = {
        [index: string]: EgretWebGLUniform;
    };
    /**
     * @private
     */
    type Attributes = {
        [index: string]: EgretWebGLAttribute;
    };
    /**
     * @private
     */
    class EgretWebGLProgram {
        private static programCache;
        /**
         * 获取所需的WebGL Program
         * @param key {string} 对于唯一的program程序，对应唯一的key
         */
        static getProgram(gl: WebGLRenderingContext, vertSource: string, fragSource: string, key: string): EgretWebGLProgram;
        static deleteProgram(gl: WebGLRenderingContext, vertSource: string, fragSource: string, key: string): void;
        private vshaderSource;
        private fshaderSource;
        private vertexShader;
        private fragmentShader;
        id: WebGLProgram;
        attributes: Attributes;
        uniforms: Uniforms;
        private constructor();
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class EgretWebGLUniform {
        private gl;
        private name;
        type: WEBGL_UNIFORM_TYPE;
        private size;
        private location;
        constructor(gl: WebGLRenderingContext, program: WebGLProgram, uniformData: any);
        value: any;
        private setDefaultValue;
        setValue: Function;
        private generateSetValue;
        upload: Function;
        private generateUpload;
    }
}
declare namespace egret.web {
    class EgretShaderLib {
        static readonly blur_frag: string;
        static readonly colorTransform_frag: string;
        static default_vert: string;
        static readonly glow_frag: string;
        static readonly primitive_frag: string;
        static texture_frag: string;
        static readonly texture_etc_alphamask_frag: string;
        static readonly colorTransform_frag_etc_alphamask_frag: string;
    }
}
declare namespace egret.web {
    var textAtlasRenderEnable: boolean;
    let __textAtlasRender__: TextAtlasRender;
    const property_drawLabel: string;
    class DrawLabel extends HashObject {
        private static pool;
        anchorX: number;
        anchorY: number;
        textBlocks: TextBlock[];
        private clear;
        static create(): DrawLabel;
        static back(drawLabel: DrawLabel, checkRepeat: boolean): void;
    }
    class TextAtlasRender extends HashObject {
        private readonly book;
        private readonly charImageRender;
        private readonly textBlockMap;
        private _canvas;
        private readonly textAtlasTextureCache;
        private readonly webglRenderContext;
        constructor(webglRenderContext: WebGLRenderContext, maxSize: number, border: number);
        static analysisTextNodeAndFlushDrawLabel(textNode: sys.TextNode): void;
        private convertLabelStringToTextAtlas;
        private createTextTextureAtlas;
        private get canvas();
    }
}
declare namespace egret.web {
    class TextBlock extends HashObject {
        private readonly _width;
        private readonly _height;
        private readonly _border;
        line: Line;
        x: number;
        y: number;
        u: number;
        v: number;
        tag: string;
        readonly measureWidth: number;
        readonly measureHeight: number;
        readonly canvasWidthOffset: number;
        readonly canvasHeightOffset: number;
        readonly stroke2: number;
        constructor(width: number, height: number, measureWidth: number, measureHeight: number, canvasWidthOffset: number, canvasHeightOffset: number, stroke2: number, border: number);
        get border(): number;
        get width(): number;
        get height(): number;
        get contentWidth(): number;
        get contentHeight(): number;
        get page(): Page;
        updateUV(): boolean;
        get subImageOffsetX(): number;
        get subImageOffsetY(): number;
    }
    class Line extends HashObject {
        page: Page;
        private readonly textBlocks;
        dynamicMaxHeight: number;
        readonly maxWidth: number;
        x: number;
        y: number;
        constructor(maxWidth: number);
        isCapacityOf(textBlock: TextBlock): boolean;
        private lastTextBlock;
        addTextBlock(textBlock: TextBlock, needCheck: boolean): boolean;
    }
    class Page extends HashObject {
        readonly lines: Line[];
        readonly pageWidth: number;
        readonly pageHeight: number;
        webGLTexture: WebGLTexture;
        constructor(pageWidth: number, pageHeight: number);
        addLine(line: Line): boolean;
    }
    class Book extends HashObject {
        private readonly _pages;
        private _sortLines;
        private readonly _maxSize;
        private readonly _border;
        constructor(maxSize: number, border: number);
        addTextBlock(textBlock: TextBlock): boolean;
        private _addTextBlock;
        private createPage;
        private sort;
        createTextBlock(tag: string, width: number, height: number, measureWidth: number, measureHeight: number, canvasWidthOffset: number, canvasHeightOffset: number, stroke2: number): TextBlock;
    }
}
declare namespace egret.web {
    /**
     * @private
     * draw类型，所有的绘图操作都会缓存在drawData中，每个drawData都是一个drawable对象
     * $renderWebGL方法依据drawable对象的类型，调用不同的绘制方法
     */
    const enum DRAWABLE_TYPE {
        TEXTURE = 0,
        RECT = 1,
        PUSH_MASK = 2,
        POP_MASK = 3,
        BLEND = 4,
        RESIZE_TARGET = 5,
        CLEAR_COLOR = 6,
        ACT_BUFFER = 7,
        ENABLE_SCISSOR = 8,
        DISABLE_SCISSOR = 9,
        SMOOTHING = 10
    }
    interface IDrawData {
        type: number;
        count: number;
        texture: WebGLTexture;
        filter: Filter;
        value: string;
        buffer: WebGLRenderBuffer;
        width: number;
        height: number;
        textureWidth: number;
        textureHeight: number;
        smoothing: boolean;
        x: number;
        y: number;
    }
    /**
     * @private
     * 绘制指令管理器
     * 用来维护drawData数组
     */
    class WebGLDrawCmdManager {
        /**
         * 用于缓存绘制命令的数组
         */
        readonly drawData: IDrawData[];
        drawDataLen: number;
        constructor();
        /**
         * 压入绘制矩形指令
         */
        pushDrawRect(): void;
        /**
         * 压入绘制texture指令
         */
        pushDrawTexture(texture: any, count?: number, filter?: any, textureWidth?: number, textureHeight?: number): void;
        pushChangeSmoothing(texture: WebGLTexture, smoothing: boolean): void;
        /**
         * 压入pushMask指令
         */
        pushPushMask(count?: number): void;
        /**
         * 压入popMask指令
         */
        pushPopMask(count?: number): void;
        /**
         * 压入混色指令
         */
        pushSetBlend(value: string): void;
        pushResize(buffer: WebGLRenderBuffer, width: number, height: number): void;
        pushClearColor(): void;
        /**
         * 压入激活buffer命令
         */
        pushActivateBuffer(buffer: WebGLRenderBuffer): void;
        pushEnableScissor(x: number, y: number, width: number, height: number): void;
        pushDisableScissor(): void;
        /**
         * 清空命令数组
         */
        clear(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * WebGL渲染缓存
     */
    class WebGLRenderBuffer extends HashObject implements sys.RenderBuffer {
        static autoClear: boolean;
        /**
         * 渲染上下文
         */
        context: WebGLRenderContext;
        /**
         * 如果是舞台缓存，为canvas
         * 如果是普通缓存，为renderTarget
         */
        surface: any;
        /**
         * root render target
         * 根渲染目标，用来执行主渲染
         */
        rootRenderTarget: WebGLRenderTarget;
        /**
         * 是否为舞台buffer
         */
        private root;
        currentTexture: WebGLTexture;
        constructor(width?: number, height?: number, root?: boolean);
        globalAlpha: number;
        globalTintColor: number;
        /**
         * stencil state
         * 模版开关状态
         */
        private stencilState;
        $stencilList: {
            x: number;
            y: number;
            width: number;
            height: number;
        }[];
        stencilHandleCount: number;
        enableStencil(): void;
        disableStencil(): void;
        restoreStencil(): void;
        /**
         * scissor state
         * scissor 开关状态
         */
        $scissorState: boolean;
        private scissorRect;
        $hasScissor: boolean;
        enableScissor(x: number, y: number, width: number, height: number): void;
        disableScissor(): void;
        restoreScissor(): void;
        /**
         * 渲染缓冲的宽度，以像素为单位。
         * @readOnly
         */
        get width(): number;
        /**
         * 渲染缓冲的高度，以像素为单位。
         * @readOnly
         */
        get height(): number;
        /**
         * 改变渲染缓冲的大小并清空缓冲区
         * @param width 改变后的宽
         * @param height 改变后的高
         * @param useMaxSize 若传入true，则将改变后的尺寸与已有尺寸对比，保留较大的尺寸。
         */
        resize(width: number, height: number, useMaxSize?: boolean): void;
        /**
         * 获取指定区域的像素
         */
        getPixels(x: number, y: number, width?: number, height?: number): number[];
        /**
         * 转换成base64字符串，如果图片（或者包含的图片）跨域，则返回null
         * @param type 转换的类型，如: "image/png","image/jpeg"
         */
        toDataURL(type?: string, encoderOptions?: number): string;
        /**
         * 销毁绘制对象
         */
        destroy(): void;
        onRenderFinish(): void;
        /**
         * 交换frameBuffer中的图像到surface中
         * @param width 宽度
         * @param height 高度
         */
        private drawFrameBufferToSurface;
        /**
         * 交换surface的图像到frameBuffer中
         * @param width 宽度
         * @param height 高度
         */
        private drawSurfaceToFrameBuffer;
        /**
         * 清空缓冲区数据
         */
        clear(): void;
        $drawCalls: number;
        $computeDrawCall: boolean;
        globalMatrix: Matrix;
        savedGlobalMatrix: Matrix;
        $offsetX: number;
        $offsetY: number;
        setTransform(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
        transform(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
        useOffset(): void;
        saveTransform(): void;
        restoreTransform(): void;
        /**
         * 创建一个buffer实例
         */
        static create(width: number, height: number): WebGLRenderBuffer;
        /**
         * 回收一个buffer实例
         */
        static release(buffer: WebGLRenderBuffer): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * WebGL上下文对象，提供简单的绘图接口
     * 抽象出此类，以实现共用一个context
     */
    class WebGLRenderContext implements egret.sys.RenderContext {
        static antialias: boolean;
        _defaultEmptyTexture: WebGLTexture;
        /**
         * 渲染上下文
         */
        context: WebGLRenderingContext;
        /**
         * 呈现最终绘图结果的画布
         */
        surface: HTMLCanvasElement;
        /**
         * WebGLRenderContext单例
         */
        private static instance;
        static getInstance(width?: number, height?: number, context?: WebGLRenderingContext): WebGLRenderContext;
        $maxTextureSize: number;
        /**
         * 顶点数组管理器
         */
        private vao;
        /**
         * 绘制命令管理器
         */
        drawCmdManager: WebGLDrawCmdManager;
        /**
         * render buffer 堆栈
         */
        $bufferStack: WebGLRenderBuffer[];
        /**
         * 当前绑定的render buffer
         */
        private currentBuffer;
        /**
         * 推入一个RenderBuffer并绑定
         */
        pushBuffer(buffer: WebGLRenderBuffer): void;
        /**
         * 推出一个RenderBuffer并绑定上一个RenderBuffer
         */
        popBuffer(): void;
        private bindIndices;
        /**
         * 启用RenderBuffer
         */
        private activateBuffer;
        /**
         * 上传顶点数据
         */
        private uploadVerticesArray;
        /**
         * 上传索引数据
         */
        private uploadIndicesArray;
        private vertexBuffer;
        private indexBuffer;
        constructor(width?: number, height?: number, context?: WebGLRenderingContext);
        /**
         * 销毁绘制对象
         */
        destroy(): void;
        onResize(width?: number, height?: number): void;
        /**
         * 改变渲染缓冲的大小并清空缓冲区
         * @param width 改变后的宽
         * @param height 改变后的高
         * @param useMaxSize 若传入true，则将改变后的尺寸与已有尺寸对比，保留较大的尺寸。
         */
        resize(width: number, height: number, useMaxSize?: boolean): void;
        static glContextId: number;
        glID: number;
        projectionX: number;
        projectionY: number;
        contextLost: boolean;
        private _supportedCompressedTextureInfo;
        pvrtc: any;
        etc1: any;
        private _buildSupportedCompressedTextureInfo;
        private initWebGL;
        getSupportedCompressedTexture(): void;
        private handleContextLost;
        private handleContextRestored;
        private getWebGLContext;
        private setContext;
        /**
         * 开启模版检测
         */
        enableStencilTest(): void;
        /**
         * 关闭模版检测
         */
        disableStencilTest(): void;
        /**
         * 开启scissor检测
         */
        enableScissorTest(rect: egret.Rectangle): void;
        /**
         * 关闭scissor检测
         */
        disableScissorTest(): void;
        /**
         * 获取像素信息
         */
        getPixels(x: any, y: any, width: any, height: any, pixels: any): void;
        /**
         * 创建一个WebGLTexture
         */
        createTexture(bitmapData: BitmapData | HTMLCanvasElement): WebGLTexture;
        private checkCompressedTextureInternalFormat;
        private $debugLogCompressedTextureNotSupported;
        private createCompressedTexture;
        /**
         * 更新材质的bitmapData
         */
        updateTexture(texture: WebGLTexture, bitmapData: BitmapData): void;
        get defaultEmptyTexture(): WebGLTexture;
        getWebGLTexture(bitmapData: BitmapData): WebGLTexture;
        /**
         * 清除矩形区域
         */
        clearRect(x: number, y: number, width: number, height: number): void;
        /**
         * 设置混色
         */
        setGlobalCompositeOperation(value: string): void;
        /**
         * 绘制图片，image参数可以是BitmapData或者renderTarget //GYLite 增加color
         */
        drawImage(image: BitmapData, sourceX: number, sourceY: number, sourceWidth: number, sourceHeight: number, destX: number, destY: number, destWidth: number, destHeight: number, imageSourceWidth: number, imageSourceHeight: number, rotated: boolean, smoothing?: boolean, color?: number): void;
        /**
         * 绘制Mesh //GYLite 增加color
         */
        drawMesh(image: BitmapData, sourceX: number, sourceY: number, sourceWidth: number, sourceHeight: number, destX: number, destY: number, destWidth: number, destHeight: number, imageSourceWidth: number, imageSourceHeight: number, meshUVs: number[], meshVertices: number[], meshIndices: number[], bounds: Rectangle, rotated: boolean, smoothing: boolean, color?: number): void;
        /**
         * 绘制材质
         */
        drawTexture(texture: WebGLTexture, sourceX: number, sourceY: number, sourceWidth: number, sourceHeight: number, destX: number, destY: number, destWidth: number, destHeight: number, textureWidth: number, textureHeight: number, meshUVs?: number[], meshVertices?: number[], meshIndices?: number[], bounds?: Rectangle, rotated?: boolean, smoothing?: boolean, color?: number): void;
        /**
         * 绘制矩形（仅用于遮罩擦除等）
         */
        drawRect(x: number, y: number, width: number, height: number): void;
        /**
         * 绘制遮罩
         */
        pushMask(x: number, y: number, width: number, height: number): void;
        /**
         * 恢复遮罩
         */
        popMask(): void;
        /**
         * 清除颜色缓存
         */
        clear(): void;
        $scissorState: boolean;
        /**
         * 开启scissor test
         */
        enableScissor(x: number, y: number, width: number, height: number): void;
        /**
         * 关闭scissor test
         */
        disableScissor(): void;
        /**
         * 执行目前缓存在命令列表里的命令并清空
         */
        activatedBuffer: WebGLRenderBuffer;
        private readonly vertexCountPerTriangle;
        private readonly triangleCountPerQuad;
        private readonly dataCountPerVertex;
        $drawWebGL(): void;
        /**
         * 执行绘制命令
         */
        private drawData;
        currentProgram: EgretWebGLProgram;
        private activeProgram;
        private syncUniforms;
        /**
         * 画texture
         **/
        private drawTextureElements;
        /**
         * @private
         * 画rect
         **/
        private drawRectElements;
        /**
         * 画push mask
         **/
        private drawPushMaskElements;
        /**
         * 画pop mask
         **/
        private drawPopMaskElements;
        private vertSize;
        /**
         * 设置混色
         */
        private setBlendMode;
        $filter: ColorMatrixFilter;
        /**
         * 应用滤镜绘制给定的render target
         * 此方法不会导致input被释放，所以如果需要释放input，需要调用此方法后手动调用release
         */
        drawTargetWidthFilters(filters: Filter[], input: WebGLRenderBuffer): void;
        /**
         * 向一个renderTarget中绘制
         * */
        private drawToRenderTarget;
        static blendModesForGL: any;
        static initBlendMode(): void;
        /**
         * @private
         */
        $beforeRender: () => void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * WebGL渲染器
     */
    class WebGLRenderer implements sys.SystemRenderer {
        constructor();
        /**
         * Do special treatment on wechat ios10
         */
        wxiOS10: boolean;
        private nestLevel;
        /**
         * 渲染一个显示对象
         * @param displayObject 要渲染的显示对象
         * @param buffer 渲染缓冲
         * @param matrix 要对显示对象整体叠加的变换矩阵
         * @param dirtyList 脏矩形列表
         * @param forRenderTexture 绘制目标是RenderTexture的标志
         * @returns drawCall触发绘制的次数
         */
        render(displayObject: DisplayObject, buffer: sys.RenderBuffer, matrix: Matrix, forRenderTexture?: boolean): number;
        /**
         * @private
         * 绘制一个显示对象
         */
        private drawDisplayObject;
        /**
         * @private
         */
        private drawWithFilter;
        private getRenderCount;
        /**
         * @private
         */
        private drawWithClip;
        /**
         * @private
         */
        private drawWithScrollRect;
        /**
         * 将一个RenderNode对象绘制到渲染缓冲
         * @param node 要绘制的节点
         * @param buffer 渲染缓冲
         * @param matrix 要叠加的矩阵
         * @param forHitTest 绘制结果是用于碰撞检测。若为true，当渲染GraphicsNode时，会忽略透明度样式设置，全都绘制为不透明的。
         */
        drawNodeToBuffer(node: sys.RenderNode, buffer: WebGLRenderBuffer, matrix: Matrix, forHitTest?: boolean): void;
        /**
         * 将一个DisplayObject绘制到渲染缓冲，用于RenderTexture绘制
         * @param displayObject 要绘制的显示对象
         * @param buffer 渲染缓冲
         * @param matrix 要叠加的矩阵
         */
        drawDisplayToBuffer(displayObject: DisplayObject, buffer: WebGLRenderBuffer, matrix: Matrix): number;
        /**
         * @private
         */
        private renderNode;
        /**
         * @private
         */
        private renderNormalBitmap;
        /**
         * @private
         */
        private renderBitmap;
        /**
         * @private
         */
        private renderMesh;
        private canvasRenderer;
        private canvasRenderBuffer;
        /**
         * @private
         */
        private ___renderText____;
        /**
         * @private
         */
        private renderText;
        /**
         * @private
         */
        private renderGraphics;
        private renderGroup;
        /**
         * @private
         */
        private createRenderBuffer;
        renderClear(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     * WebGLRenderTarget
     * A WebGL render target with a frame buffer and texture
     */
    class WebGLRenderTarget extends HashObject {
        private gl;
        texture: WebGLTexture;
        private frameBuffer;
        private stencilBuffer;
        width: number;
        height: number;
        clearColor: number[];
        /**
         * If frame buffer is enabled, the default is true
         */
        useFrameBuffer: boolean;
        constructor(gl: WebGLRenderingContext, width: number, height: number);
        private _resize;
        resize(width: number, height: number): void;
        activate(): void;
        private getFrameBuffer;
        initFrameBuffer(): void;
        private createTexture;
        clear(bind?: boolean): void;
        enabledStencil(): void;
        dispose(): void;
    }
}
declare namespace egret {
    /**
     * @private
     */
    class WebGLUtils {
        static compileProgram(gl: WebGLRenderingContext, vertexSrc: string, fragmentSrc: string): WebGLProgram;
        static compileFragmentShader(gl: WebGLRenderingContext, shaderSrc: string): WebGLShader;
        static compileVertexShader(gl: WebGLRenderingContext, shaderSrc: string): WebGLShader;
        private static _compileShader;
        private static canUseWebGL;
        static checkCanUseWebGL(): boolean;
        static deleteWebGLTexture(webglTexture: WebGLTexture): void;
        /**
         * inspired by pixi.js
         */
        static premultiplyTint(tint: number, alpha: number): number;
    }
}
declare namespace egret.web {
    /**
     * @private
     * 顶点数组管理对象
     * 用来维护顶点数组
     */
    class WebGLVertexArrayObject {
        private readonly vertSize;
        private readonly vertByteSize;
        private readonly maxQuadsCount;
        private readonly maxVertexCount;
        private readonly maxIndicesCount;
        vertices: Float32Array;
        private indices;
        private indicesForMesh;
        private vertexIndex;
        private indexIndex;
        private hasMesh;
        private _vertices;
        private _verticesFloat32View;
        private _verticesUint32View;
        constructor();
        /**
         * 是否达到最大缓存数量
         */
        reachMaxSize(vertexCount?: number, indexCount?: number): boolean;
        /**
         * 获取缓存完成的顶点数组
         */
        getVertices(): Float32Array;
        /**
         * 获取缓存完成的索引数组
         */
        getIndices(): Uint16Array;
        /**
         * 获取缓存完成的mesh索引数组
         */
        getMeshIndices(): any;
        /**
         * 切换成mesh索引缓存方式
         */
        changeToMeshIndices(): void;
        isMesh(): boolean;
        /**
         * 默认构成矩形
         */
        /**
         * 缓存一组顶点
         */
        cacheArrays(buffer: WebGLRenderBuffer, sourceX: number, sourceY: number, sourceWidth: number, sourceHeight: number, destX: number, destY: number, destWidth: number, destHeight: number, textureSourceWidth: number, textureSourceHeight: number, meshUVs?: number[], meshVertices?: number[], meshIndices?: number[], rotated?: boolean, color?: number): void;
        clear(): void;
    }
    var isIOS14Device: () => boolean;
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebCapability {
        /**
         * @private
         * 检测系统属性
         */
        static detect(): void;
        static injectUIntFixOnIE9(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebFps implements egret.FPSDisplay {
        private panelX;
        private panelY;
        private fontColor;
        private fontSize;
        private container;
        private fps;
        private log;
        private showPanle;
        private renderMode;
        constructor(stage: Stage, showFPS: boolean, showLog: boolean, logFilter: string, styles: Object);
        private containerFps;
        private fpsHeight;
        private divDatas;
        private divDraw;
        private divCost;
        private contextFps;
        private canvasFps;
        private WIDTH;
        private HEIGHT;
        private bgCanvasColor;
        private fpsFrontColor;
        private contextCost;
        private canvasCost;
        private WIDTH_COST;
        private cost1Color;
        private cost3Color;
        private addFps;
        private addLog;
        private arrFps;
        private arrCost;
        private lastNumDraw;
        update(datas: FPSData, showLastData?: boolean): void;
        private arrLog;
        updateInfo(info: string): void;
        updateWarn(info: string): void;
        updateError(info: string): void;
        private updateLogLayout;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    function getOption(key: string): string;
}
declare namespace egret.web {
    /**
     * @private
     */
    let WebLifeCycleHandler: egret.lifecycle.LifecyclePlugin;
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebPlayer extends egret.HashObject implements egret.sys.Screen {
        constructor(container: any, options: runEgretOptions);
        private init;
        private initOrientation;
        /**
         * 读取初始化参数
         */
        private readOption;
        /**
         * @private
         * 添加canvas到container。
         */
        private attachCanvas;
        playerOption: PlayerOption;
        /**
         * @private
         * 画布实例
         */
        private canvas;
        /**
         * @private
         * 播放器容器实例
         */
        private container;
        /**
         * @private
         * 舞台引用
         */
        stage: Stage;
        private webTouchHandler;
        private player;
        private webInput;
        private updateAfterTyping;
        /**
         * @private
         * 更新播放器视口尺寸
         */
        updateScreenSize(): void;
        setContentSize(width: number, height: number): void;
        /**
         * @private
         * 更新触摸数量
         */
        updateMaxTouches(): void;
    }
}
declare namespace egret.web {
    /**
     * @private
     */
    const enum WEBGL_ATTRIBUTE_TYPE {
        FLOAT_VEC2 = 35664,
        FLOAT_VEC3 = 35665,
        FLOAT_VEC4 = 35666,
        FLOAT = 5126,
        BYTE = 5120,
        UNSIGNED_BYTE = 5121,
        UNSIGNED_SHORT = 5123
    }
    /**
     * @private
     */
    const enum WEBGL_UNIFORM_TYPE {
        FLOAT_VEC2 = 35664,
        FLOAT_VEC3 = 35665,
        FLOAT_VEC4 = 35666,
        INT_VEC2 = 35667,
        INT_VEC3 = 35668,
        INT_VEC4 = 35669,
        BOOL = 35670,
        BOOL_VEC2 = 35671,
        BOOL_VEC3 = 35672,
        BOOL_VEC4 = 35673,
        FLOAT_MAT2 = 35674,
        FLOAT_MAT3 = 35675,
        FLOAT_MAT4 = 35676,
        SAMPLER_2D = 35678,
        SAMPLER_CUBE = 35680,
        BYTE = 5120,
        UNSIGNED_BYTE = 5121,
        SHORT = 5122,
        UNSIGNED_SHORT = 5123,
        INT = 5124,
        UNSIGNED_INT = 5125,
        FLOAT = 5126
    }
    /**
     * sys.resizeContext。
     */
    function resizeContext(renderContext: egret.sys.RenderContext, width: number, height: number, useMaxSize?: boolean): void;
    /**
     * sys.getContext2d
     */
    function getContext2d(surface: HTMLCanvasElement): CanvasRenderingContext2D;
}
declare namespace egret.web {
    /**
     * @private
     */
    function convertImageToCanvas(texture: egret.Texture, rect?: egret.Rectangle): HTMLCanvasElement;
}
declare namespace egret.web {
    /**
     * @private
     */
    class WebTouchHandler extends HashObject {
        /**
         * @private
         */
        constructor(stage: egret.Stage, canvas: HTMLCanvasElement);
        /**
         * @private
         */
        private canvas;
        /**
         * @private
         */
        private touch;
        /**
         * @private
         * 添加事件监听
         */
        private addListeners;
        /**
         * @private
         *
         */
        private addMouseListener;
        /**
         * @private
         *
         */
        private addTouchListener;
        /**
         * @private
         */
        private prevent;
        /**
         * @private
         */
        private onTouchBegin;
        private onMouseMove;
        /**
         * @private
         */
        private onTouchMove;
        /**
         * @private
         */
        private onTouchEnd;
        /**
         * @private
         */
        private getLocation;
        /**
         * @private
         */
        private scaleX;
        /**
         * @private
         */
        private scaleY;
        /**
         * @private
         */
        private rotation;
        /**
         * @private
         * 更新屏幕当前的缩放比例，用于计算准确的点击位置。
         * @param scaleX 水平方向的缩放比例。
         * @param scaleY 垂直方向的缩放比例。
         */
        updateScaleMode(scaleX: number, scaleY: number, rotation: number): void;
        /**
         * @private
         * 更新同时触摸点的数量
         */
        $updateMaxTouches(): void;
    }
}
declare module GYLite {
    class WebGLVertext3DObject {
        vertexIndex: number;
        indexIndex: number;
        tpVertexIndex: number;
        tpIndexIndex: number;
        vertSize: number;
        vertByteSize: number;
        maxQuadsCount: number;
        maxVertexCount: number;
        maxIndicesCount: number;
        protected _vertices: ArrayBuffer;
        protected _verticesFloat32View: Float32Array;
        protected _verticesUint32View: Uint32Array;
        indices: Uint16Array;
        protected _tpVertices: ArrayBuffer;
        protected _tpVerticesFloat32View: Float32Array;
        protected _tpVerticesUint32View: Uint32Array;
        tpIndices: Uint16Array;
        vertextIndex: number;
        indicesIndex: number;
        vertices: ArrayBuffer;
        tpVertices: ArrayBuffer;
        constructor();
        reachMaxSize(vertexCount?: number, indexCount?: number): boolean;
        getVertices(): ArrayBuffer;
        getIndices(): ArrayBuffer;
        cacheArrays(buffer: any, sourceX: any, sourceY: any, sourceWidth: any, sourceHeight: any, destX: any, destY: any, destWidth: any, destHeight: any, textureSourceWidth: any, textureSourceHeight: any, meshUVs: any, meshVertices: any, meshIndices: any, rotated: any, color: any): void;
    }
}
declare module GYLite {
    class GYEvent extends egret.Event {
        /**加载完成*/
        static LOAD_COMPLETE: string;
        /**数据刷新完毕触发*/
        static VALUE_COMMIT: string;
        /**全局拖动通知*/
        static GLOABL_DRAG: string;
        data: any;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, data?: any);
    }
}
declare module GYLite {
    class GYGridEvent extends GYEvent {
        static ROWGRID_DATACHANGE: string;
        static COLGRID_DATACHANGE: string;
        static COLGRID_NUMCHANGE: string;
        static ROWGRID_NUMCHANGE: string;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
    }
}
declare module GYLite {
    class GYTouchEvent extends egret.TouchEvent {
        /**外部释放鼠标*/
        static RELEASE_OUTSIDE: string;
        /**长按鼠标*/
        static LONG_MOUSEDOWN: string;
        /**连续按下鼠标*/
        static CONTINUE_MOUSEDOWN: string;
        outsideTarget: any;
        result: number;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, stageX?: number, stageY?: number, touchPtId?: number);
    }
}
declare module GYLite {
    class GYScrollerEvent extends GYEvent {
        /**滚动条改变*/
        static SCROLL_CHANGE: string;
        /**滚动结束*/
        static SCROLL_TWEEN_END: string;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
    }
}
declare module GYLite {
    class GYThemeEvent extends GYEvent {
        /**主题改变*/
        static THEME_CHANGE: string;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean);
    }
}
declare module GYLite {
    class GYViewEvent extends GYEvent {
        /**当GYUIComponent视图改变时，如width/height/scaleX/scaleY/x/y/right/bottom*/
        static VIEWCHANGE: string;
        /**动画播放完毕*/
        static ANIMATION_END: string;
        /**视图更新完毕*/
        static UPDATE_COMPLETE: string;
        /**组件被选择时*/
        static SELECTED: string;
        /**组件取消选择时触发*/
        static UNSELECTED: string;
        /**列表格子刷新*/
        static GRID_UPDATE: string;
        /**列表数据刷新*/
        static DATA_UPDATE: string;
        /**垂直拖动到尽头*/
        static DRAGEND_VERTICAL: string;
        /**水平拖动到尽头*/
        static DRAGEND_HORIZONAL: string;
        /**垂直滚动到尽头*/
        static SCROLLEND_VERTICAL: string;
        /**水平滚动到尽头*/
        static SCROLLEND_HORIZONAL: string;
        /**拖动结束*/
        static DRAGSTOP: string;
        /**拖动开始*/
        static DRAGSTART: string;
        /**裁切滚动*/
        static CLIP_SCROLL: string;
        /**静态文本显示*/
        static STATIC_TEXT_SHOW: string;
        /**静态文本隐藏*/
        static STATIC_TEXT_HIDE: string;
        constructor(type: string, bubbles?: boolean, cancelable?: boolean, data?: any);
    }
}
declare module GYLite {
    /**IBatch是一个可以支持纹理合批的显示对象接口
     * */
    interface IBatch {
        /**合批图集名称*/
        getBatchAtlasName(): string;
        setBatchAtlasName(val: string): void;
        $hashCode: number;
        /**显示对象唯一标识*/
        get hashCode(): number;
        /**合批绘制方式*/
        getBatchDrawParam(): BatchDrawParam;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**当前是否合批状态*/
        isBatch(): boolean;
        /**是否开启合批*/
        enableBatch(val: boolean): void;
        /**清理合批引用*/
        clearBatch(): void;
    }
}
declare module GYLite {
    /**IDragger是一个拖动接口，实现此接口，可通过调用DragManager.setDrag设定为可拖动对象
     * */
    interface IDragger extends IGYDisplay {
        /**获取拖动时显示的位图*/ getBitmapData(): egret.Texture;
        /**获取数据*/ getData(): any;
        /**锁定相对鼠标的位置0不锁定 1中心 2左上 3右上 4左下 5右下，参考DragManager的常量定义*/
        isLockCenter(): number;
        /**获取与其绑定的DraggerHandle*/ getHandle(): DraggerHandle;
        /**记录与其绑定的DraggerHandle*/ setHandle(val: DraggerHandle): void;
        /**拖动时位图的跟随,这是每帧调用的函数，不断修改draggerShape位置达到效果，返回false将使用默认的方式跟随(固定位置)*/
        draggingSet(draggerShape: any): boolean;
        /**自定义绘制拖动的Shape，拖动前执行，当返回true，则自定义要绘制的图案，getBitmapData()将不使用，返回false将使用getBitmapData()提供的位图进行绘制*/
        draggingDraw(draggerShape: any): boolean;
        /**拖动结束*/
        dragStop(): void;
    }
}
declare module GYLite {
    interface IGYContainer extends IGYDisplay {
        addElement(child: IGYDisplay): IGYDisplay;
        removeElement(child: IGYDisplay): IGYDisplay;
        addElementAt(child: IGYDisplay, index: number): IGYDisplay;
        removeElementAt(index: number): IGYDisplay;
    }
}
declare module GYLite {
    /**羔羊组件的显示对象基础接口*/
    interface IGYDisplay extends egret.IEventDispatcher, IResource, IBatch {
        layout(): void;
        sizeChange(): void;
        addLayout(p: GYUIComponent): void;
        getAllBounds(t: IGYDisplay): egret.Rectangle;
        getElementsBounds(t: IGYDisplay): egret.Rectangle;
        invalidDisplay(): void;
        invalidLayout(): void;
        toString(): string;
        inParentView(l?: number, r?: number, t?: number, b?: number): boolean;
        dispose(disposeChild?: boolean, removeChild?: boolean, forceDispose?: boolean): void;
        getLayoutContainer(): egret.DisplayObjectContainer;
        rotation: number;
        y: number;
        x: number;
        width: number;
        height: number;
        scaleX: number;
        scaleY: number;
        visible: boolean;
        offLayout: boolean;
        touchEnabled: boolean;
        mouseThrough: boolean;
        rectHit: boolean;
        disposed: boolean;
        alpha: number;
        $visible: boolean;
        isPercentSize(): boolean;
        layoutParent: GYUIComponent;
        layoutMode: LayoutMode;
        parent: egret.DisplayObjectContainer;
        mouseY: number;
        mouseX: number;
        stage: egret.Stage;
    }
}
declare module GYLite {
    /**羔羊组件的交互显示对象基础接口*/
    interface IGYInteractiveDisplay extends IGYDisplay {
        toolTip: GYToolTip;
        toolTipString: string;
    }
}
declare module GYLite {
    interface IGYSkinContainer extends IGYContainer {
        skin: any;
    }
}
declare module GYLite {
    /**视图元素接口*/
    interface IGYView {
        viewDispatcher: any;
    }
}
declare module GYLite {
    interface IItemRender extends IGYDisplay {
        /**设置格子数据 */ setData(obj: any): void;
        /**获取格子数据 */ getData(): any;
        /**渲染项的拥有者 */ owner: IList;
        selected: boolean;
        /**渲染项的数据索引 */ itemIndex: number;
        /**二维表渲染项的数据行 */ row: number;
        /**二维表渲染项的数据列 */ col: number;
    }
}
declare module GYLite {
    interface IList extends IGYDisplay {
        /**允许选择多少项(默认0，不能选择)*/ canSelectNum: number;
        /**当前选择的项*/ selectedItem: IItemRender;
        /**不参与列表选择的对象*/ stopSelTarget: any;
        /**选中项的数据列表(当canSelectNum大于1时，将会提供此选择列表)*/
        selectList: any[];
        /**当前选择的数据，选择的数据不一定与选择的项相对应，由于内部使用的是渲染项循环滚动以节省资源，所以滚动之后选择的项的数据不一定就是选择的数据*/
        selectedData: any;
    }
}
declare module GYLite {
    interface IListener {
        dataChange(listenId: number): void;
    }
}
declare module GYLite {
    interface IPoolObject {
        /**对象清理，回收池中，必须设置inPool为false，以标记回收*/ clear(): void;
        /**是否在池中,在s.clear设置为false已标记回收*/ inPool: boolean;
        /**对象唯一id*/ poolId?: number;
        outPoolInit(): void;
        dispose(): void;
    }
}
declare module GYLite {
    /**IReceiver是一个接收接口，实现此接口，可接收来自IDragger的数据* */
    interface IReceiver extends IGYDisplay {
        receiveData(val: IDragger): void;
    }
}
declare module GYLite {
    /**羔羊组件的可销毁的资源对象*/
    interface IResource {
        dispose(): void;
        disposed: boolean;
    }
}
declare module GYLite {
    interface IUpdate {
        updateView(): void;
        updating: boolean;
    }
}
declare module GYLite {
    class LayoutManager {
        protected static _renderFuncList: any;
        protected static _tempRenderFuncList: any;
        protected static _rending: Boolean;
        protected static _stage: egret.Stage;
        static max: number;
        static lastNum: number;
        static Init(stage: egret.Stage): void;
        /**
         * 舞台渲染前执行
         * */
        static addRenderFunc(up: IUpdate): void;
        private static RenderFunc;
        private static update;
    }
}
declare module GYLite {
    /**布局策略类*/
    class LayoutMode {
        /**绝对布局*/ static ABSOLUTE: number;
        /**相对布局*/ static RELATIVE: number;
        $horizonalCenter: number;
        $verticalCenter: number;
        $right: number;
        $bottom: number;
        $left: number;
        $top: number;
        /**宽度百分比[0,1]*/ percentWidth: number;
        /**高度百分比[0,1]*/ percentHeight: number;
        constructor();
        set horizonalCenter(val: number);
        get horizonalCenter(): number;
        set verticalCenter(val: number);
        get verticalCenter(): number;
        set right(val: number);
        /**相对左边*/
        get left(): number;
        set left(val: number);
        /**相对上边*/
        get top(): number;
        set top(val: number);
        /**相对右边*/
        get right(): number;
        set bottom(val: number);
        /**相对底边*/
        get bottom(): number;
        isPercentSize(): boolean;
        /**布局模式*/
        get layoutMode(): number;
        /**克隆布局策略*/
        clone(): LayoutMode;
    }
}
declare module GYLite {
    class CompressLoadInfo {
        private _progFunc;
        private _callBackFunc;
        private _resCount;
        private _resMax;
        curLoadInfo: LoadInfo;
        thisObject: any;
        param: any;
        msg: string;
        errorCode: number;
        startTime: number;
        progressInfo: any[];
        loader: GYLoader;
        constructor();
        /**加载url的媒体资源，图片、mp3
         * @param url url地址
         * @param type 类型 参考GYLoader常量
        */
        loadPath(url: string, type: number): void;
        /**加载url的数据资源
         * @param url ur地址
         * @param type 类型 参考GYLoader常量
        */
        loadData(url: string, type: number): void;
        /**读取bytes资源 png jpg bmp
         * @param bytes uint8Array或者ByteArray的buffer属性
         * @param callBackFunc 回调函数，返回参数为LoadInfo,返回后，loadInfo会自动被清理
         * @param thisObject callBackFunc的this指向
         * @param type 加载资源html blob类型 image(如image/png)
         * @param mimeType blob资源 如"image/png" 图片文件 "audio/basic" 声音文件
         * @param param 附加参数
         * @param retainBytes 是否保留加载的文件字节数据
         * */
        loadBytes(bytes: any, type?: number, mimeType?: string, param?: any, path?: string, retainBytes?: boolean): void;
        setResCount(cur: any, max: any): void;
        set callBackFunc(val: Function);
        /**加载完成回调函数*/
        get callBackFunc(): Function;
        set progFunc(val: Function);
        /**加载进度回调函数*/
        get progFunc(): Function;
        callBack(l?: LoadInfo, key?: string, startTime?: number): void;
        private bytesCallBack;
        /**资源总数*/
        get resMax(): number;
        /**未解压的资源数*/
        get resCount(): number;
    }
}
/**
 * @author 迷途小羔羊
 * 2019-5-6
 */
declare module GYLite {
    class GYByteArray extends egret.ByteArray {
        constructor(buffer?: ArrayBuffer | Uint8Array);
        /**zlib算法解压 需要引用zlib.min.js*/
        uncompress(algorithm?: String): void;
        /**zlib算法压缩 需要引用zlib.min.js*/
        compress(algorithm?: String): void;
    }
}
/**
 * @author 迷途小羔羊
 * 2014-11-19
 */
declare module GYLite {
    /**
 * @author 迷途小羔羊
 * 2014-11-19
 */
    /**MyLoader是一个loader和urlloader封装的多任务加载器*/
    class GYLoader {
        private static _loader;
        static getDefaultLoader(): GYLoader;
        /**支持的解析类型1 blob 2 base64*/ static supportBlobMP3: number;
        /**支持的解析类型1 blob 2 base64*/ static supportBlobWAV: number;
        /**自定义压缩的音频解析类*/ static defCompressSound: any;
        /**图片*/ static TYPE_IMAGE: number;
        /**纹理*/ static TYPE_TEX: number;
        /**图集*/ static TYPE_ATLAS: number;
        /**swf指定类名的资源(弃用)*/ static TYPE_SWF: number;
        /**swf资源库(弃用)*/ static TYPE_SWFS: number;
        /**字体(弃用)*/ static TYPE_FONT: number;
        /**二进制*/ static TYPE_BINARY: number;
        /**文本*/ static TYPE_TEXT: number;
        /**xml(未启用)*/ static TYPE_XML: number;
        /**json*/ static TYPE_JSON: number;
        /**variables(弃用)*/ static TYPE_VARIABLES: number;
        /**swf片段(弃用)*/ static TYPE_MOVIE: number;
        /**js片段*/ static TYPE_JS: number;
        /**声音文件*/ static TYPE_SOUND: number;
        /**url资源*/ static TYPE_URL_RES: number;
        static imageToGPU: boolean;
        /**是否微信http请求接口优先，默认false*/ static wxreq: any;
        private static _resDict;
        private static _resDataDict;
        private _seqLoaderList;
        private _seqURLLoaderList;
        private _loadList;
        private _urlLoadList;
        private _loaderReq;
        private _httpReq;
        private static _checkTime;
        private static _checkInterval;
        private static _timeId;
        /**
         * @param loaderThreads Loader的线程数量 默认为1
         * @param urlLoaderThreads UrlLoader的线程数量 默认为0
         * @param 微信加载器，若存在则使用微信加载器方式加载
         * */
        constructor(loaderThreads?: number, urlLoaderThreads?: number);
        private getLoader;
        private getURLLoader;
        /**读取bytes资源 png jpg bmp
         * @param bytes uint8Array或者ByteArray的buffer属性
         * @param callBackFunc 回调函数，返回参数为LoadInfo,返回后，loadInfo会自动被清理
         * @param thisObject callBackFunc的this指向
         * @param type 加载资源html blob类型 image(如image/png)
         * @param mimeType blob资源 如"image/png" 图片文件 "audio/basic" 声音文件
         * @param param 附加参数
         * @param retainBytes 是否保留加载的文件字节数据
         * */
        loadBytes(bytes: any, callBackFunc: any, thisObject: any, type?: number, mimeType?: string, param?: any, retainBytes?: boolean): LoadInfo;
        /**读取GYPackager打包的资源
         * @param bytes uint8Array或者ByteArray的buffer属性
         * @param callBackFunc 回调函数，返回参数为CompressLoadInfo
         * @param callBackFunc指向
         * @param version 资源版本号
         * @param progFunc 回调函数，返回参数为CompressLoadInfo
         * @param param 附加参数 在CompressLoadInfo.param处返回
         * @param retainBytes 是否保留加载的文件字节数据
         * */
        loadGYCompressBytes(buffer: ArrayBuffer, callBackFunc: Function, thisObject: any, version?: string, progFunc?: Function, param?: any, retainBytes?: boolean): CompressLoadInfo;
        /**读取网络资源 swf png jpg bmp
         * @param path 读取路径
         * @param callBackFunc 回调函数，返回参数为LoadInfo,返回后，loadInfo会自动被清理
         * @param thisObject callBackFunc的this指向
         * @param type 加载资源类型 image(png,jpg), swf, font
         * */
        loadPath(path: any, callBackFunc: any, thisObject: any, type?: number, param?: any): LoadInfo;
        /**取消加载，当调用loadPath加载资源时，调用此方法取消加载，此方法根据path和callBackFunc寻找此前的加载请求
         * @param path	加载路径
         * @param callBackFunc 加载完成的回调
         * */
        cancelLoadPath(path: any, callBackFunc: any, thisObject: any): void;
        private LoadError;
        private ErrorNext;
        private LoadComp;
        private getResByLoaderInfo;
        private LoadNext;
        /**httpSend请求
         * @param url 请求的url
         * @param callBackFunc 回调函数，返回参数为LoadInfo
         * @param thisObject callBackFunc的this指向     *
         * @param type  二进制(binary)、文本(text)、URL 编码变量(variables) 参考GYLoader常量
         * @param method 访问方式 get 或者 post
         * @param header 头部数据(Array[{key,value}])
         * @param data 发送数据
         * @param param 回调附加参数object
         * */
        httpSend(url: string, callBackFunc: Function, thisObject: any, type?: number, method?: string, header?: Array<any>, data?: any, contentType?: string, param?: any): LoadInfo;
        /**加载数据
         * @param path 读取路径
         * @param callBackFunc 回调函数，返回参数为LoadInfo
         * @param thisObject callBackFunc的this指向
         * @param progFunc 回调函数，返回参数为ProgressEvent
         * @param type  二进制(binary)、文本(text)、URL 编码变量(variables)
         * @param method 访问方式 get 或者 post
         * */
        loadData(path: any, callBackFunc: any, thisObject: any, progFunc?: any, type?: number, method?: string, param?: any): LoadInfo;
        /**取消加载，当调用loadPath加载数据时，调用此方法取消加载，此方法根据path和callBackFunc寻找此前的加载请求
         * @param path	加载路径
         * @param callBackFunc 加载完成的回调
         * */
        cancelLoadData(path: any, callBackFunc: any, thisObject: any): void;
        private UrlLoadComp;
        private getResByBytes;
        private URLLoadError;
        private UrlErrorNext;
        private UrlProgFunc;
        private UrlLoadNext;
        static getMimeType(type: number, path?: string): string;
        static getImageMemory(): number;
        static getImageGPUMemory(): number;
        /**设置资源回收的时间间隔，为0时不回收*/
        static setResCheck(val: any): void;
        static checkResUse(sysTime: any): void;
        /**获取包含key键的数据资源,假设data文件夹下面的资源，如 data/,结尾带上/，以便区分文件夹节点
         * @param searchKey 资源键名
         * @param exact 是否完全匹配 默认false
         * @param ignoreVersion 匹配忽略版本号
        */
        static getDataResByKey(searchKey: string, exact?: boolean, ignoreVersion?: boolean): Array<ResObject>;
        /**获取包含key键的资源,假设img文件夹下面的资源，如 img/,结尾带上/，以便区分文件夹节点
         * @param searchKey 资源键名
         * @param exact 是否完全匹配 默认false
        */
        static getResByKey(searchKey: string, exact?: boolean): Array<ResObject>;
        /**销毁资源
         * @param resObj ResObject资源
         * @param dictType 资源类型 默认3 媒体资源和数据 1媒体资源 2数据
        */
        static deleteRes(resObj: ResObject, dictType?: number): void;
        /**删除包含key键的资源,删除img文件夹下面的资源，如 img/,结尾带上/，以便区分文件夹节点, deleteKey为空则删除全部资源
         * @param deleteKey 资源键名
         * @param dictType 资源类型 默认3 媒体资源和数据 1媒体资源 2数据
         * @param fuzzy 是否模糊匹配，默认true
        */
        static deleteResByKey(deleteKey: string, dictType?: number, fuzzy?: boolean): void;
        /**获取位图、动画资源
         * @param key 资源路径，需要后缀
         * @param aliasKey 图集资源路径，如果存在图集，则key为图集内小图名称，需要后缀
        */
        static getRes(key: string, aliasKey?: string): ResObject;
        /**获取二进制数据资源*/
        static getDataRes(val: string): any;
        static setRes(key: string, val: ResObject): void;
        static setDataRes(key: string, val: ResObject): void;
        /**获取媒体资源数组*/
        static resArray(): ResObject[];
        /**获取数据资源数组*/
        static dataResArray(): ResObject[];
        /**销毁加载系统*/
        static dispose(): void;
        /**加载系统是否已销毁*/
        static get disposed(): boolean;
        static _disposed: boolean;
    }
    class SeqURLLoader extends egret.EventDispatcher {
        private _loadInfo;
        private _intervalId;
        private _isLoading;
        private _xmlHttpRequest;
        private _data;
        private _cancelLockTime;
        progressData: any;
        private _laterFunc;
        private _laterObject;
        private _bindHandleEvent;
        constructor();
        set loadInfo(val: LoadInfo);
        get loadInfo(): LoadInfo;
        private handleEvent;
        close(): void;
        load(req: URLRequest): void;
        get data(): any;
        private loadComp;
        private loadError;
        /**由于连续加载时，上一个失败立即使用这个loader会产生加载中断的bug，所以进行延时处理*/
        callLater(func: Function, thisObject: any, delay?: number): void;
        private laterCall;
        /**清理延时*/
        clearCallLater(): void;
        get cancelLockTime(): number;
        set cancelLockTime(value: number);
        get isLoading(): number;
        set isLoading(val: number);
        breakLock(): void;
    }
    class SeqLoader extends egret.EventDispatcher {
        private _loadInfo;
        private _intervalId;
        private _isLoading;
        private _imageLoader;
        private _soundLoader;
        private _cancelLockTime;
        private _data;
        private _laterFunc;
        private _laterObject;
        private _bytes;
        constructor();
        set loadInfo(val: LoadInfo);
        get loadInfo(): LoadInfo;
        get isLoading(): number;
        set isLoading(val: number);
        loadBytes(bytes: any): void;
        loadSound(url: string): void;
        private loadSoundComp;
        private loadSoundError;
        load(url: string): void;
        loadBitmap(blob: Blob): void;
        get data(): any;
        private loadBitmapComp;
        private loadComp;
        private loadError;
        /**由于连续加载时，上一个失败立即使用这个loader会产生加载中断的bug，所以进行延时处理*/
        callLater(func: Function, thisObject: any, delay?: number): void;
        private laterCall;
        /**清理延时*/
        clearCallLater(): void;
        get cancelLockTime(): number;
        set cancelLockTime(value: number);
        breakLock(): void;
    }
    class URLRequest {
        method: any;
        dataFormat: any;
        url: any;
        contentType: any;
        requestHeaders: any;
        data: any;
        constructor();
    }
    class URLRequestHeader {
        key: string;
        value: string;
        constructor(key: any, value: any);
    }
    class URLVariables {
        variables: any;
        constructor(source: any);
        decode(source: any): void;
        toString(): string;
        encodeValue(key: any, value: any): any;
        encodeArray(key: any, value: any): any;
    }
    class URLLoaderDataFormat {
        static BINARY: string;
        static TEXT: string;
        static VARIABLES: string;
        static JSON: string;
    }
}
declare module GYLite {
    interface ISound {
        bytes: ArrayBuffer;
        mimeType: string;
        path: string;
        compress: string;
        play(startTime?: number, loops?: number): egret.SoundChannel;
        readonly channel: egret.SoundChannel;
        readonly originChannel: egret.SoundChannel;
        setOriginChannel(val: egret.SoundChannel): any;
        stop(): void;
    }
}
/**
 @author 迷途小羔羊
 2014-11-19
 */
declare module GYLite {
    /**
     * 加载资源，用于记载资源时，记录资源的一些基本信息
     * 当要销毁时，请调用其Clear方法，并且把引用设置为null
     * */
    class LoadInfo {
        static SEND_RES: number;
        static SEND_DATA: number;
        static SEND_HTTP: number;
        save: boolean;
        path: string;
        bytes: any;
        startTime: number;
        private _content;
        contentType: string;
        header: Array<any>;
        type: any;
        method: string;
        thisObject: any;
        param: any;
        data: any;
        progressInfo: any[];
        retainBytes: boolean;
        /**http状态码*/ status: number;
        /**传送类型，参考LoadInfo常量*/ sendType: number;
        private _msg;
        private _progFunc;
        private _callBackFunc;
        private _loadVec;
        mimeType: string;
        private static _pool;
        constructor();
        get dataFormat(): string;
        set callBackFunc(val: Function);
        /**加载完成回调函数*/
        get callBackFunc(): Function;
        set msg(val: string);
        /**错误信息*/
        get error(): number;
        /**加载信息*/
        get msg(): string;
        set content(val: ResObject);
        get content(): ResObject;
        /**加载完成，会调用所有关联的回调*/
        callBack(): void;
        /**取消加载请求,当加载请求全部被取消时，自动清理这个LoadInfo
         * @return 是否已无加载请求
         * */
        cancel(callBackFunc: Function, thisObject: any): boolean;
        set progFunc(val: Function);
        /**加载进度回调函数*/
        get progFunc(): Function;
        prog(e: ProgressEvent): void;
        /**清理回收*/
        clear(): void;
        /**同一个url的加载请求，将被添加到第一个加载请求的LoadInfo下面*/
        addLoadInfo(val: LoadInfo, thisObject: any): void;
        private copy;
        static getInstance(): LoadInfo;
    }
}
declare module GYLite {
    /**资源对象，包含资源以及资源的引用计数，引用计数为0时，资源会被回收*/
    class ResObject {
        static id: number;
        type: number;
        /**引用计数，当引用计数为0时，资源会被释放,如非必要，勿修改此值*/
        private _count;
        /**资源，如BitmapData，直接调取并不增加应用计数count，不需调用relRes释放，如需增加计数，请调用getRes，释放请调用relRes*/
        res: any;
        /**资源加载的路径*/
        pathKey: string;
        /**附属资源*/
        param: any;
        inPool: boolean;
        private _bornTime;
        private _id;
        constructor();
        /**id*/
        get id(): number;
        /**获取资源时，请尽量使用getRes，以便引用计数*/
        getRes(): any;
        /**资源释放时，请把引用设置为null，避免重复释放*/
        relRes(): void;
        clear(gc?: boolean): void;
        /**引用数量*/
        get count(): number;
        private static _pool;
        static getInstance(): ResObject;
        /**生产时间*/
        get bornTime(): number;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class Atlas {
        $disposed: boolean;
        /**图集纹理资源*/ $aliasRes: ResObject;
        $webglRenderContext: egret.sys.RenderContext;
        protected _canvas: HTMLCanvasElement;
        $webGLTexture: WebGLTexture;
        protected _atlasRect: AtlasRect;
        protected _freeBatchDict: any;
        /**空闲的batchInfo数量*/ $freeCount: number;
        protected _sheetsPool: SheetConfig[];
        protected _texturePool: egret.Texture[];
        protected _bitmapX: number;
        protected _bitmapY: number;
        /**图集名称*/ $atlasName: string;
        /**图集id*/ $atlasId: number;
        /**单张图集
         * @param atlasName 图集名称
         * @param atlasId 图集id
         * @param webglTex webgl纹理
         * @param w 图集宽度
         * @param h 图集高度
         * @param context 渲染上下文
         * @param source 图集引用的数据源，默认null，则会自动创建空白的图集
         * **/
        constructor(atlasRect: AtlasRect, context: egret.sys.RenderContext, source?: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement | egret.BitmapData, createSpriteSheet?: boolean);
        createSpriteSheep(jsonRes?: GYLite.ResObject): void;
        /**根据小图信息进行测量绘制，生成webgl纹理
         * @param rectInfo 描述小图信息，参考RectInfo类
         * @param elemtn 显示对象源
        */
        measureAndDraw(rectInfo: RectInfo, element: HTMLImageElement | HTMLCanvasElement | BatchElement): WebGLTexture;
        /**根据配置添加小图
         * @param subKey 小图名称
         * @param config 小图配置
         * @param atlasInfo 图集信息
        */
        addSubResByConfig(subKey: string, config: any): ResObject;
        /**给图集资源ResObject添加小图
         * @param atlasInfo 图集信息
         * @param srcTex 源小图纹理对象（未合批前），默认null，没有源小图，则自动创建一个
        */
        addSubRes(atlasInfo: AtlasInfo): ResObject;
        /**给图集资源ResObject移除小图*/
        removeSubRes(texName: string): void;
        getSheetConfig(x: number, y: number, w: number, h: number, offX: number, offY: number, sourceW: number, sourceH: number): SheetConfig;
        recycleSheetConfig(subKey: string): void;
        getTexture(bitmapX: number, bitmapY: number, bitmapWidth: number, bitmapHeight: number, offsetX: number, offsetY: number, textureWidth: number, textureHeight: number): egret.Texture;
        recycleTexture(delRes: ResObject): void;
        /**图集宽度*/
        get atlasId(): number;
        /**图集宽度*/
        get atlasName(): string;
        /**图集宽度*/
        get width(): number;
        /**图集高度*/
        get height(): number;
        /**图集webgl纹理*/
        get webglTexture(): WebGLTexture;
        /**图集资源对象*/
        get atlasRes(): GYLite.ResObject;
        /**虚拟图集*/
        get atlasRect(): AtlasRect;
        private createTextTextureAtlas;
        /**添加当前空闲的合批信息(当图集位置紧张时会进行移除)*/
        addFreeBatchInfo(batchInfo: BatchInfo): void;
        /**移除当前空闲的合批信息*/
        removeFreeBatchInfo(batchInfo: BatchInfo): void;
        /**释放所有空闲的合批信息*/
        releaseFreeBatch(): void;
        dispose(): void;
        get disposed(): boolean;
        static curImage: GYGroup;
        debugImage: GYLite.GYImage;
        debugGroup: GYLite.GYGroup;
        debugShow(): void;
    }
    class SheetConfig {
        x: number;
        y: number;
        w: number;
        h: number;
        offX: number;
        offY: number;
        sourceW: number;
        sourceH: number;
        constructor();
        reset(x: number, y: number, w: number, h: number, offX: number, offY: number, sourceW: number, sourceH: number): void;
    }
}
declare module GYLite {
    /**单次添加小图到虚拟图集的基本信息*/
    class AtlasInfo {
        /**关联的图集名称*/ atlasName: string;
        /**图集id*/ atlasId: number;
        /**图集宽度*/ width: number;
        /**图集高度*/ height: number;
        /**小图信息*/ rectInfo: RectInfo;
        constructor(atlasName: string, atlasId: number, width: number, height: number, rectInfo?: any);
        get resKey(): string;
    }
    /**小图在虚拟图集的基本信息*/
    class RectInfo {
        /**小图间隙*/ gap: number;
        /**在图集中的定位x（不包括间隙，包括透明像素）*/ innerX: number;
        /**在图集中的定位y（不包括间隙，包括透明像素）*/ innerY: number;
        /**图测量宽度（不包括间隙，不包括透明像素）*/ innerWidth: number;
        /**图测量高度（不包括间隙，不包括透明像素）*/ innerHeight: number;
        /**在图集中的定位x坐标(边框包括间隙)*/ x: number;
        /**在图集中的定位y坐标(边框包括间隙)*/ y: number;
        /**外框宽度(包括间隙，包括透明像素)*/ width: number;
        /**外框高度(包括间隙，包括透明像素)*/ height: number;
        /**小图名称*/ texName: string;
        /**合批绘制配置，默认null*/ drawParam: BatchDrawParam;
        /**透明像素偏移x*/ offX: number;
        /**透明像素偏移y*/ offY: number;
        /**图片宽度(不包括间隙，包括透明像素)*/ sourceWidth: number;
        /**图片高度(不包括间隙，包括透明像素)*/ sourceHeight: number;
        constructor(texName: string, x: number, y: number, width: number, height: number, gap?: number, offX?: number, offY?: number, sourceW?: number, sourceH?: number);
    }
}
declare module GYLite {
    class AtlasManager {
        private _atlasVec;
        private _atlasId;
        /**允许同时缓存的图集数量，默认10*/ maxAtlasNum: number;
        /**创建图集的宽度*/ atlasWidth: number;
        /**创建图集的高度*/ atlasHeight: number;
        constructor();
        get atlasNum(): number;
        /**获取图集矩形数组*/
        get atlasVec(): Array<AtlasRect>;
        /**从图集管理器的图集队列中移除图集*/
        removeAtlas(atlasRect: AtlasRect): void;
        /**插入纹理
         * @param texName 小图名称
         * @param atlasName 图集名称
         * @param w 图片宽度
         * @param h 图片高度
         * @param type 裁剪策略 排列方式0 偏向正方形 1 优先横向 2 优先纵向,默认1
         * @param gap 图片之间的间隙，默认1
        */
        addTexture(texName: string, atlasName: string, w: number, h: number, type?: number, gap?: number): {
            atlasRect: AtlasRect;
            atlasInfo: AtlasInfo;
            error: SysError;
        };
        /**创建一个虚拟图集
         * @param w 宽度
         * @param h 高度
         * @param atlasName 图集名称
        */
        createAtlas(w: number, h: number, atlasName: string, result?: {
            atlasRect: AtlasRect;
            error: SysError;
        }, check?: boolean): {
            atlasRect: AtlasRect;
            error: SysError;
        };
        /**删除纹理
         * @param texName 小图名称
        */
        removeTexture(texName: string): void;
        private createSheetJson;
        cvs: HTMLCanvasElement;
        ctx: CanvasRenderingContext2D;
        private _atlasCount;
        outputAtlasArr: any[];
        private _fileReader;
        /**输出图集数据文件
         * @param show 是否显示到body上
         * @param callBack 完成回调 ():void=>{}
         * @param thisObj this指向
         * @param reset 默认true，不需要设置
        */
        outputAtlas(show: boolean, callBack: Function, thisObj: any, reset?: boolean): void;
        /**输入虚拟图集数据*/
        inputJson(atlasArray: any[]): void;
        /**输出虚拟图集数据*/
        outputJson(): any[];
    }
}
declare module GYLite {
    class AtlasRect extends egret.Rectangle implements GYLite.IPoolObject {
        /**创建虚拟图集区域
         * @param x 区域左上角x
         * @param y 区域左上角y
         * @param w 区域宽度
         * @param h 区域高度
         * @param parent 父级区域
         * @return AtlasRect区域
        */
        static createAtlasRect(x: number, y: number, w: number, h: number, parent: AtlasRect): AtlasRect;
        static maxSize: number;
        static minSize: number;
        emptyRects: Array<AtlasRect>;
        textureRects: Array<AtlasRect>;
        /**图集名称*/ atlasName: string;
        /**id*/ atlasId: number;
        gap: number;
        $childVec: Array<AtlasRect>;
        $parent: AtlasRect;
        /**小图纹理名称*/ name: string;
        /**纹理宽度，空白区域此属性为NaN*/
        textureWidth: number;
        /**纹理高度，空白区域此属性为NaN*/
        textureHeight: number;
        private _mgr;
        /**创建虚拟图集区域
         * @param x 区域左上角x
         * @param y 区域左上角y
         * @param w 区域宽度
         * @param h 区域高度
         * @param mgr 图集管理器，只有主图集有管理器的引用
        */
        constructor(x?: number, y?: number, w?: number, h?: number, mgr?: AtlasManager);
        /**虚拟图集管理器*/
        get mgr(): AtlasManager;
        /**图集资源唯一键 图集名称+id(id其实也是唯一的)*/
        get resKey(): string;
        /**添加空白区域*/
        addEmptyRect(atlasRect: AtlasRect): void;
        /**添加纹理区域*/
        addTextureRect(atlasRect: AtlasRect): void;
        /**拷贝引用父级图集的内容(因此内容共享于最外层主图集)*/
        copyAtlasProp(rect: AtlasRect): void;
        findTextureRect(texName: string): AtlasRect;
        /**裁切出指定宽高的空白区域
         * @param w 宽度（不包括间隙）
         * @param h 高度（不包括间隙）
         * @param type 裁剪策略 排列方式0 偏向正方形 1 优先横向 2 优先纵向
         * @param gap 间隙
         * @return 空间不足返回null，裁切成功返回AtlasRect（其中宽高是包括间隙的）
        */
        cutRect(w: number, h: number, type?: number, gap?: number): AtlasRect;
        private getClipRect;
        /**请求回到空白队列*/
        backToEmpty(): AtlasRect;
        /**是否已经填充图集*/
        isTexture(): boolean;
        /**是否已经被裁切使用*/
        isUse(): Boolean;
        /**输出图集配置*/
        outputJson(): any;
        /**输入图集配置*/
        inputJson(obj: any): void;
        inPool: boolean;
        protected beforeToPool(): void;
        clear(): void;
        outPoolInit(): void;
        dispose(): void;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class AtlasRender implements IResource {
        static defaultGap: number;
        static defaultAtlasName: string;
        static _instance: AtlasRender;
        static getInstance(): AtlasRender;
        /**获取batch纹理，如果存在，如果不存在则尝试进行合批创建*/
        static getBatchTexture(tex: egret.Texture, display: IBatch): egret.Texture;
        $disposed: boolean;
        protected _rectAtlasMgr: AtlasManager;
        protected _atlasDict: any;
        protected _gap: number;
        protected _webglRenderContext: egret.sys.RenderContext;
        /**
         * @param webglRenderContext 绘图上下文
         * @param maxSize 加入图集的最大尺寸限制
         * @param gap 小图填充之间的间隙
        */
        constructor(webglRenderContext: egret.sys.RenderContext, maxSize: number, gap: number);
        get atlasNum(): number;
        getRectAtlasMgr(): AtlasManager;
        /**移除合批到图集的小图
         * @param batchInfo 合批记录
        */
        removeBatch(batchInfo: BatchInfo): void;
        /**源小图合批到图集，会对tex进行合批操作，由此tex会产生batchInfo属性，代表已经合批
         * @param tex 源小图纹理
         * @param display 申请合批的显示对象(需实现IBatch接口)
         * @return 成功合批返回合批信息 BatchInfo，否则返回null
        */
        addBatch(tex: egret.Texture, display: IBatch, releaseFree?: boolean): BatchInfo;
        /**创建一张图集
         * @param width 宽度
         * @param height 高度
         * @param atlasName 图集名称
         * @param createSpriteSheet 图集配置，默认true，则创建空图集，当读取外部图集则认为是非空，可以设置为false，再调用AtlasRender.inputSpriteSheet方法导入配置
         * @param source 图集数据源
        */
        createAtlas(width: number, height: number, atlasName: string, source?: HTMLCanvasElement | HTMLImageElement | HTMLVideoElement, createSpriteSheet?: boolean): {
            atlas: Atlas;
            atlasRect: AtlasRect;
            error: SysError;
        };
        /**移除图集纹理
         * @param atlasName 图集名称
        */
        removeAtlas(atlasName: string): void;
        /**导入图集小图配置
         * @param spriteSheet 图集配置
         * @param atlasId 图集id
        */
        inputSpriteSheet(spriteSheet: ResObject, atlasId: number): void;
        dispose(): void;
        get disposed(): boolean;
        /**获取最近产生的一张名为atlasName的图集*/
        getLastAtlas(atlasName: string): Atlas;
    }
    class Point {
        x: number;
        y: number;
        constructor(x: number, y: number);
    }
    class Line {
        static minusX(srcL: Line, minusL: Line, result?: Line[]): Line[];
        a: Point;
        b: Point;
        private _borderW;
        private _borderH;
        constructor(p1: Point, p2: Point);
        setBorder(w: number, h: number): void;
        get right_b_x(): number;
        get right_b_y(): number;
        get right_a_x(): number;
        get right_a_y(): number;
        get bottom_a_x(): number;
        get bottom_a_y(): number;
        get bottom_b_x(): number;
        get bottom_b_y(): number;
        get lengthX(): number;
        get height(): number;
        convertToAtalsRect(parent: AtlasRect): AtlasRect;
    }
}
declare module GYLite {
    class BatchElement implements IResource, IPoolObject {
        /**宽度(包括增加的边距)*/ width: number;
        /**高度(包括增加的边距)*/ height: number;
        $disposed: boolean;
        constructor();
        get disposed(): boolean;
        dispose(): void;
        protected beforeToPool(): void;
        clear(): void;
        inPool: boolean;
        outPoolInit(): void;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class BatchTexture extends egret.Texture implements IResource, IPoolObject {
        $disposed: boolean;
        hash: number;
        constructor();
        /**重置参数
         * @param hsCode hash值
         * @param batchElement 合批数据源测量信息
        */
        reset(hsCode: number, batchElement: BatchElement): void;
        get element(): BatchElement;
        get disposed(): boolean;
        dispose(): void;
        protected beforeToPool(): void;
        clear(): void;
        inPool: boolean;
        outPoolInit(): void;
    }
}
declare module GYLite {
    class GradientType {
        /**线性渐变*/ static LINEAR: GradientType;
        /**径向渐变*/ static RADIAL: GradientType;
        private _id;
        private _name;
        constructor(id: number, name: string);
        get id(): number;
        get name(): string;
    }
}
declare module GYLite {
    class GraphicsData {
        color: number[];
        alpha: number[];
        ratio: number[];
        repeat: boolean;
        matrix: egret.Matrix;
        fillColor: number[];
        fillAlpha: number[];
        fillRatio: number[];
        fillMatrix: egret.Matrix;
        fillRepeat: boolean;
        width: number;
        height: number;
        x: number;
        y: number;
        type: GraphicsType;
        density: number;
        fillTexture: egret.Texture;
        texture: egret.Texture;
        vertices: number[];
        isDraw: boolean;
        cap: CanvasLineCap;
        joint: CanvasLineJoin;
        thickness: number;
        miterLimit: number;
        lineGradientType: string;
        fillGradientType: string;
        constructor(x: number, y: number, type: GraphicsType);
        inputGraphics(g: GYGraphics): void;
    }
    class LineData extends GraphicsData {
        constructor(x: number, y: number, type: GraphicsType);
        inputGraphics(g: GYGraphics): void;
    }
    class CircleData extends GraphicsData {
        radiusX: number;
        radiusY: number;
        smoothing: boolean;
        constructor(x: number, y: number, type: GraphicsType);
    }
    class PolyData extends GraphicsData {
        constructor(x: number, y: number, type: GraphicsType);
    }
    class TriangleData extends GraphicsData {
        indices: number[];
        uvs: number[];
        constructor(x: number, y: number, type: GraphicsType);
    }
    class ArcData extends GraphicsData {
        radius: number;
        anticlockwise: boolean;
        startAngle: number;
        endAngle: number;
        thickness: number;
        constructor(x: number, y: number, type: GraphicsType);
    }
}
declare module GYLite {
    class GraphicsType {
        static POINT: GraphicsType;
        static LINE: GraphicsType;
        static RECT: GraphicsType;
        static CIRCLE: GraphicsType;
        static ELLIPSE: GraphicsType;
        static TRIANGLE: GraphicsType;
        static POLY: GraphicsType;
        static ROUNDRECT: GraphicsType;
        static CURVE: GraphicsType;
        static CUBIC_CURVE: GraphicsType;
        static ARC: GraphicsType;
        private _id;
        private _name;
        constructor(id: number, name: string);
        get id(): number;
        get name(): string;
    }
}
declare module GYLite {
    class GraphicsElement extends BatchElement {
        /**实际原图开始颜色*/ startColor: number;
        /**实际原图结束颜色*/ endColor: number;
        /**颜色数组，大于1个颜色则为渐变*/ $color: number[];
        /**透明度数组*/ $alpha: number[];
        /**渐变比例*/ $ratio: number[];
        /**端点宽度*/ $capWidth: number;
        /**间隙*/ $gap: number;
        /**2倍间隙*/ $gap2: number;
        /**X轴半径*/ $radiusX: number;
        /**Y轴半径*/ $radiusY: number;
        /**原点X*/ $originX: number;
        /**原点Y*/ $originY: number;
        /**中间拉伸部分X的尺寸*/ $scaleSizeX: number;
        /**中间拉伸部分Y的尺寸*/ $scaleSizeY: number;
        /**圆角半径X*/ $rectRadiusX: number;
        /**圆角半径Y*/ $rectRadiusY: number;
        /**边缘模糊像素*/ $blurSize: number;
        /**线条9切片*/ $lineRect: GYLite.Scale9GridRect;
        /**细线条9切片*/ $lineTinyRect: GYLite.Scale9GridRect;
        /**边距*/ $padding: number;
        /**矢量类型*/ $type: GraphicsType;
        /**渐变类型*/ $gradientType: string;
        /**渐变矩阵*/ $gradientMatrix: egret.Matrix;
        /**矢量线段拐角类型 "bevel" | "miter" | "round"*/
        lineJoin: CanvasLineJoin;
        /**笔触宽度*/
        lineWidth: number;
        /**线段端点的类型 "butt" | "round" | "square"*/
        lineCap: CanvasLineCap;
        /**全局透明度*/ $globalAlpha: number;
        constructor();
        reset(param: any, type?: GraphicsType): void;
        get globalAlpha(): number;
        /**填充的颜色、渐变或模式*/
        getFillStyle(ctx: CanvasRenderingContext2D): string | CanvasGradient | CanvasPattern;
        /**笔触的颜色、渐变或模式*/
        getStrokeStyle(ctx: CanvasRenderingContext2D): string | CanvasGradient | CanvasPattern;
        get blurSizeY(): number;
        get blurSizeX(): number;
        /**设置圆角*/
        private setRoundRectRadius;
        getScaleRect(type?: GraphicsType, thickness?: number): GYLite.Scale9GridRect;
    }
}
declare module GYLite {
    class BatchDrawParam {
        /**样式类型*/ type: BatchDrawType;
        /**X半径*/ radiusX: number;
        /**Y半径*/ radiusY: number;
        /**圆角半径*/ angleRadius: number;
        /**绘制偏移量X*/ offsetX: number;
        /**绘制偏移量Y*/ offsetY: number;
        /**缩放X*/ scaleX: number;
        /**缩放Y*/ scaleY: number;
        constructor(type: BatchDrawType, radiusX?: number, radiusY?: number, scaleX?: number, scaleY?: number, offsetX?: number, offsetY?: number);
        /**宽度*/
        getWidth(): number;
        /**高度*/
        getHeight(): number;
        draw(ctx: CanvasRenderingContext2D, element: HTMLImageElement | HTMLCanvasElement | BatchElement, gap?: number): void;
        private static drawCircle;
        private static drawRect;
        /**圆角绘制(未完成)*/
        private static drawRoundRect;
        /**文本绘制*/
        private static drawText;
        /**矢量绘制*/
        private static graphicsDraw;
        /**
         * 绘制一段圆弧路径
         * @param x 圆弧中心（圆心）的 x 轴坐标。
         * @param y 圆弧中心（圆心）的 y 轴坐标。
         * @param radiusX 圆弧的半径 x。
         * @param radiusY 圆弧的半径 y。
         * @param startAngle 圆弧的起始点， x轴方向开始计算，单位以弧度表示。
         * 注意：必须为正数。
         * @param endAngle 圆弧的终点， 单位以弧度表示。
         * 注意：与startAngle差值必须在0~2π之间。
         * @param anticlockwise 如果为 true，逆时针绘制圆弧，反之，顺时针绘制。
         * 注意：如果为true，endAngle必须小于startAngle，反之必须大于。
         */
        private static arcToBezier;
        private static drawRoundRectShape;
        private static drawRectShape;
        private static drawLineShape;
        private static drawCircleShape;
        private static _chineseCharacterMeasureFastMap;
        private static _chineseCharactersRegExp;
        static measure(text: string, font: string, format: Format): number;
        static draw(ctx: CanvasRenderingContext2D, element: HTMLImageElement | HTMLCanvasElement | BatchElement, param: BatchDrawParam, gap?: number): void;
    }
    class BatchDrawType {
        /**矩形裁切*/ static RECT: BatchDrawType;
        /**圆形裁切*/ static CIRCLE: BatchDrawType;
        /**圆角裁切*/ static ROUND_RECT: BatchDrawType;
        /**文本绘制*/ static TEXT: BatchDrawType;
        /**graphics绘制*/ static GRAPHICS: BatchDrawType;
        $id: number;
        $name: string;
        constructor(id: number, name: string);
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class GraphicsTexture extends BatchTexture {
        constructor();
        protected beforeToPool(): void;
        static batchParam: BatchDrawParam;
        private static _graphicsTextureMap;
        static getGraphicsDesc(param: any, type: GraphicsType): string;
        /**获取矢量绘制数据源*/
        static getGraphicsTexture(param: any, type: GraphicsType): GraphicsTexture;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class GYBitmapNode extends egret.sys.BitmapNode implements IUpdate {
        left: number;
        right: number;
        top: number;
        bottom: number;
        color: number;
        protected fillMode: string;
        protected scale9Grid: egret.Rectangle;
        protected _updating: boolean;
        protected _WMidData: egret.Texture;
        protected _HMidData: egret.Texture;
        protected _scale9GridRect: Scale9GridRect;
        protected _clipX: number;
        protected _clipY: number;
        protected _drawX: number;
        protected _drawY: number;
        protected _mode: number;
        protected _invalidDraw: boolean;
        protected _renderMatrix: egret.Matrix;
        protected _repeat: boolean;
        protected _repeatWidth: number;
        protected _repeatHeight: number;
        protected _repeatX: number;
        protected _repeatY: number;
        protected _width: number;
        protected _height: number;
        protected _texture: egret.Texture;
        protected _matrix: egret.Matrix;
        protected _angle: number;
        protected _tx: number;
        protected _ty: number;
        protected _alpha: number;
        constructor(value?: egret.Texture, rect?: Scale9GridRect);
        setRect(l: number, r: number, t: number, b: number): void;
        /**设置节点透明度*/
        setAlpha(a: number): void;
        /**x y位置偏移量*/
        translate(x: number, y: number): void;
        /**设置x y纹理偏移*/
        setOffset(x: number, y: number): void;
        set angle(agl: number);
        get angle(): number;
        set rotation(degree: number);
        get rotation(): number;
        private draw;
        beginBitmapFill(m: egret.Matrix, r: boolean): void;
        drawRect(tX: number, tY: number, w: number, h: number): void;
        clearBitmapFill(): void;
        set repeatWidth(val: number);
        /**重复模式的砖块宽度*/
        get repeatWidth(): number;
        set repeatHeight(val: number);
        /**重复模式的砖块高度*/
        get repeatHeight(): number;
        set repeatX(val: number);
        /**重复模式的起始X*/
        get repeatX(): number;
        set repeatY(val: number);
        /**重复模式的起始Y*/
        get repeatY(): number;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        /**绘制模式 @see ScaleMode
         * @param val 0 拉伸 1 裁切 2 重复 */
        set mode(val: number);
        set scale9GridRect(value: Scale9GridRect);
        set clipX(val: number);
        set clipY(val: number);
        /**裁切的s.x坐标*/
        get clipX(): number;
        /**裁切的s.y坐标*/
        get clipY(): number;
        set drawX(val: number);
        set drawY(val: number);
        /**绘制点的s.x坐标*/
        get drawX(): number;
        /**绘制点的s.y坐标*/
        get drawY(): number;
        /**刷新绘图*/
        invalidDraw(): void;
        get scale9GridRect(): Scale9GridRect;
        /**是否刷新中（内部使用请勿修改）*/
        get updating(): boolean;
        set updating(value: boolean);
        validDraw(): void;
        updateView(): void;
    }
}
declare module GYLite {
    class GYGraphics extends egret.Graphics implements IBatch {
        x: number;
        y: number;
        width: number;
        height: number;
        constructor(target?: egret.DisplayObject);
        /**设置全局透明度*/
        setGlobalAlpha(val: number): void;
        clearBatch(): void;
        /**合批图集名称*/
        getBatchAtlasName(): string;
        setBatchAtlasName(val: string): void;
        /**合批绘制方式*/
        getBatchDrawParam(): BatchDrawParam;
        setBatchDrawParam(val: BatchDrawParam): void;
        /**是否合批状态*/
        isBatch(): boolean;
        enableBatch(val: boolean): void;
        $setTarget(target: egret.DisplayObject): void;
        protected setStrokeWidth(width: number): void;
        /**开始填充
         * @param color 颜色
         * @param alpha 透明度
        */
        beginFill(color: number, alpha?: number): void;
        /**渐变填充*/
        beginGradientFill(type: string, colors: number[], alphas: number[], ratios: number[], matrix?: egret.Matrix): void;
        /**位图填充*/
        beginBitmapFill(tex: egret.Texture, matrix: egret.Matrix, repeat?: boolean, alpha?: number): void;
        /**闭合填充*/
        endFill(): void;
        /**笔触样式
         * @param thickness 笔触大小，默认1
         * @param color 颜色，默认0
         * @param alpha 透明度，默认1
         * @param pixelHinting 是否完整像素 默认false（此功能暂时未提供）
         * @param scaleMode 拉伸模式 默认"normal"，此功能暂时未提供
         * @param cap 端点 默认"round"
         * @param joint 拐角 默认null，此功能暂时未提供
         * @param miterLimit 拐角最大像素,仅在joint为"miter"有效，默认0，此功能暂时未提供
         * @param lineDash 虚线值，默认[6,3]，此功能暂时未提供
         * @param tex 纹理填充
         * @param matrix 纹理的变换
        */
        lineStyle(thickness?: number, color?: number, alpha?: number, pixelHinting?: boolean, scaleMode?: string, cap?: string, joint?: string, miterLimit?: number, lineDash?: number[]): void;
        /**位图填充笔触
         * @param thickness 笔触大小
         * @param alpha 透明度
         * @param tex 填充的纹理
         * @param matrix 纹理的矩阵变换，默认null，则纹理垂直于线条方向
         * */
        lineBitmapStyle(thickness?: number, alpha?: number, tex?: egret.Texture, matrix?: egret.Matrix): void;
        /**渐变填充笔触*/
        lineGradientStyle(thickness: number, type: string, colors: number[], alphas: number[], ratios: number[], matrix?: egret.Matrix, cap?: CanvasLineCap, joint?: CanvasLineJoin): void;
        /**dataDraw-矩形绘制*/
        drawRect(x: number, y: number, width: number, height: number): void;
        /**dataDraw-圆角矩形绘制*/
        drawRoundRect(x: number, y: number, width: number, height: number, ellipseWidth: number, ellipseHeight?: number): void;
        /**dataDraw-圆绘制*/
        drawCircle(x: number, y: number, radius: number, density?: number, smoothing?: boolean): void;
        /**do-执行圆绘制（包含椭圆）*/
        private doDrawCircle;
        /**dataDraw-椭圆绘制*/
        drawEllipse(x: number, y: number, width: number, height: number, density?: number, smoothing?: boolean): void;
        /**dataDraw-绘制多边形*/
        drawPoly(path: number[]): void;
        /**do-执行绘制多边形
         * @param path 多边形路径
         * @param check 检测多边形顶点是否交错 默认true
         * @param stroke 描边 默认true
        */
        private doDrawPoly;
        /**dataDraw-绘制三角形
         * @param vertices 顶点坐标 例如 [10,10,30,10,30,30]
         * @param uvs uv贴图坐标，例如 [0,0,1,0,1,1]
         * @param indices 顶点索引，例如 [0,1,2]
        */
        drawTriangle(vertices: number[], uvs: number[], indices: number[]): void;
        private doDrawTriangle;
        /**笔触移动到(x,y)*/
        moveTo(x: number, y: number): void;
        private doMoveTo;
        /**dataDraw-从当前笔触位置绘制线段到(x,y)*/
        lineTo(x: number, y: number): void;
        /**执行绘制线段
         * @param x 目标坐标x
         * @param y 目标坐标y
         * @param blur 如果未产生锯齿，默认使用的模糊像素，默认0，不使用
         * @param lastLineNode 上一个线段节点
         * @param cap 端点 默认null，无端点
         * @param joint 拐角 默认null，无拐角
         * @param dataLine 是否graphics绘制数据，默认false
        */
        private dolineTo;
        private jointDraw;
        private capDraw;
        private pathDraw;
        private bezierDraw;
        /**dataDraw-从当前坐标开始绘制二次贝塞尔曲线*/
        curveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void;
        /**dataDraw-从当前坐标开始绘制三次贝塞尔曲线*/
        cubicCurveTo(controlX1: number, controlY1: number, controlX2: number, controlY2: number, anchorX: number, anchorY: number): void;
        private doCubicCurve;
        drawArc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean, density?: number): void;
        /**do-执行绘制一段圆弧
         * @param x 圆心x
         * @param y 圆心y
         * @param radius 圆弧半径
         * @param startAngle 起始弧度
         * @param endAngle 结束弧度
         * @param anticlockwise 是否逆时针 默认false
        */
        protected doDrawArc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean, density?: number): void;
        /**使用贝塞尔曲线画一段圆弧线
         * @param x 圆心x
         * @param y 圆心y
         * @param radiusX 横向半径
         * @param radiusY 纵向半径
         * @param startAngle 起始弧度
         * @param endAngle 结束弧度
         * @param anticlockwise 是否逆时针 默认false
         * @param density 采样密度 默认0.04
         * @param excludeEndPoint 是否忽略最后一个端点 默认false
         * @param result 采样结果数组 默认null，则直接绘制，否则result里存放采样的坐标
        */
        private arcToBezier;
        protected dirty(): void;
        protected arcBounds(x: number, y: number, radius: number, startAngle: number, endAngle: number): void;
        clear(): void;
        protected extendBoundsByPoint(x: number, y: number): void;
        protected extendBoundsByX(x: number): void;
        protected extendBoundsByY(y: number): void;
        protected updateNodeBounds(): void;
        protected updatePosition(x: number, y: number): void;
        $measureContentBounds(bounds: egret.Rectangle): void;
        $hitTest(stageX: number, stageY: number): egret.DisplayObject;
        $onAddToStage(): void;
        $onRemoveFromStage(): void;
        /**获取合批对象*/
        getBatch(param: any, type: GraphicsType): BatchInfo;
        get lastData(): GraphicsData;
        private createBitmapNode;
        private createMeshNode;
        private createTexMeshNode;
        private newLine;
        private _saves;
        private save;
        private restore;
        protected drawData(d: GraphicsData): void;
        protected removeNodes(nodes: egret.sys.RenderNode[]): void;
        protected removeNode(node: egret.sys.RenderNode): void;
        protected addData(d: GraphicsData): void;
        protected addNode(node: egret.sys.RenderNode): void;
        protected createGradientParam(param: any, ratio: number[], w: number, h: number): any;
        get fillRepeat(): boolean;
        get fillGradientType(): string;
        get lineGradientType(): string;
        get miterLimit(): number;
        get thickness(): number;
        get cap(): CanvasLineCap;
        get joint(): CanvasLineJoin;
        get color(): number[];
        get alpha(): number[];
        get ratio(): number[];
        get texture(): egret.Texture;
        get lineMatrix(): egret.Matrix;
        get fillMatrix(): egret.Matrix;
        get fillColor(): number[];
        get fillAlpha(): number[];
        get fillRatio(): number[];
        get fillTexture(): egret.Texture;
        getBatchTexture(tex: egret.Texture): egret.Texture;
        private static _tempPt0;
        private static _tempPt1;
        private static _tempPt2;
        private static _tempPt3;
        private static _tempMatrix;
        protected _patternStyleMap: any;
        protected _batchDrawParam: BatchDrawParam;
        protected _smoothing: boolean;
        protected _data: GraphicsData[];
        protected _color: number[];
        protected _alpha: number[];
        protected _ratio: number[];
        protected _texture: egret.Texture;
        protected _lineMatrix: egret.Matrix;
        protected _cap: CanvasLineCap;
        protected _joint: CanvasLineJoin;
        protected _thickness: number;
        protected _miterLimit: number;
        protected _fillColor: number[];
        protected _fillAlpha: number[];
        protected _fillRatio: number[];
        protected _fillTexture: egret.Texture;
        protected _fillMatrix: egret.Matrix;
        protected _fillRepeat: boolean;
        protected _fillGradientType: string;
        protected _gradientMatrix: egret.Matrix;
        protected _densty: number;
        protected _lastLineNode: GYMeshNode;
        protected _lastLineData: LineData;
        protected _lineGradientType: string;
        protected _cacheDrawData: any[];
        protected _lastCapNodes: GYMeshNode[];
        protected _lastStartX: number;
        protected _lastStartY: number;
        protected _lastBezierNode: GYMeshNode;
        protected _isAllDraw: boolean;
        protected static _lineCaps: string[];
        protected _batch: boolean;
        protected _batchAtlasName: string;
    }
}
/**
@author 迷途小羔羊
2022.10.19
*/
declare module GYLite {
    class GYMeshNode extends egret.sys.MeshNode implements IUpdate {
        left: number;
        right: number;
        top: number;
        bottom: number;
        color: number;
        constructor();
        setRect(l: number, r: number, t: number, b: number): void;
        updatePosBound(x: number, y: number): void;
        /**添加顶点*/
        addVertex(x: number, y: number, u: number, v: number): void;
        /**添加批量顶点*/
        addVertices(vertices: number[], uvs: number[], indices: number[]): void;
        protected _updating: boolean;
        /**是否刷新中（内部使用请勿修改）*/
        get updating(): boolean;
        set updating(value: boolean);
        updateView(): void;
    }
}
declare module GYLite {
    type SeparatorResult = {
        error: SysError;
        width: number;
        height: number;
        left: number;
        right: number;
        top: number;
        bottom: number;
        indices: number[];
        vertices: number[];
        uvs: number[];
    };
    class Separator {
        /**分割三角形
         * @param path 路径数组 [x1,y1,x2,y2……]
         * @param check 是否检测路径存在相交点
         * @param createUV 是否生成uv数据，生成的uv用于纹理填充 默认false
         * @param offsetX 纹理偏移量x
         * @param offsetY 纹理偏移量y
         * @param fillWidth 填充纹理的宽度 默认100
         * @param fillHeight 填充纹理的高度 默认100
         * @param matrix 纹理的matrix变换
         * @param repeat 是否重复填充 默认false
        */
        static separate(path: number[], check?: boolean, createUV?: boolean, offsetX?: number, offsetY?: number, fillWidth?: number, fillHeight?: number, matrix?: egret.Matrix, repeat?: boolean): SeparatorResult;
        /**计算矩形顶点和三角形顶点的交集路径
         * @param rectPoints 矩形顶点(顺时针)
         * @param trianglePoints 三角形顶点(顺时针)
         * @param repeat 填充图形是否重复
         * @param result 结果数组
        */
        private static triangleCutRect;
        private static tempPointsA;
        private static tempPointsB;
        private static tempPointsC;
        private static tempPointsD;
    }
}
declare module GYLite {
    class GYTextElement extends BatchElement {
        /**当前字体格式*/ $format: Format;
        /**字符*/ $char: string;
        /**字体css字符串*/ $font: string;
        /**加边距之后的居中偏移量x*/ $canvasWidthOffset: number;
        /**加边距之后的居中偏移量y*/ $canvasHeightOffset: number;
        /**描边值*/ $stroke: number;
        /**两倍描边值*/ $stroke2: number;
        /**文本测量后的宽度*/ private $measureWidth;
        /**文本测量后的高度*/ $measureHeight: number;
        constructor();
        reset(char?: string, font?: string, element?: GYTextBase, format?: any): void;
        dispose(): void;
    }
    class Format {
        /**字体颜色*/ textColor: number;
        /**描边颜色*/ strokeColor: number;
        /**描边大小*/ stroke: number;
        /**阴影颜色*/ shadowColor: number;
        /**阴影偏移X*/ shadowOffsetX: number;
        /**阴影偏移Y*/ shadowOffsetY: number;
        /**阴影大小*/ shadowBlur: number;
        /**字号*/ size: number;
        /**加粗*/ bold: boolean;
        /**倾斜*/ italic: boolean;
        /**字体*/ fontFamily: string;
        /**
         * @param element 文本组件
         * @param format 组件的附加文本格式信息
        */
        constructor();
        clear(): void;
        reset(element: GYTextBase, format: any): Format;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class TextTexture extends BatchTexture implements IResource, IPoolObject {
        constructor();
        protected beforeToPool(): void;
        static batchParam: BatchDrawParam;
        private static _textTextureMap;
        static getFontString(gytext: GYTextBase, format: any): string;
        static getDescription(gytext: GYTextBase, format?: any): {
            desc: string;
            font: string;
        };
        static getTextTexture(char: string, gytext: GYTextBase, format?: any): TextTexture;
    }
}
declare module GYLite {
    class BatchInfo extends egret.HashObject implements IResource, IPoolObject {
        $disposed: boolean;
        /**引用合批的显示对象列表*/
        protected _displayMap: any;
        /**合批图集信息*/
        atlasInfo: AtlasInfo;
        /**合批图集*/
        atlas: Atlas;
        /**合批后产生的资源对象*/
        batchRes: ResObject;
        /**关联合批的源纹理对象*/ $sourceTexture: egret.Texture;
        /**数据源*/ $source: HTMLImageElement | HTMLCanvasElement | GYTextElement;
        /**是否已经进行texSubImage上传gpu*/ isTexSubImage: boolean;
        /**合批后图集中的小图纹理的资源对象*/ $batchTexture: egret.Texture;
        protected _mgr: BatchManager;
        /**显示对象对batchInfo的引用数*/ $referenceCount: number;
        constructor(atlasInfo: AtlasInfo, atlas: Atlas, batchRes: ResObject, srcTex: egret.Texture, mgr?: BatchManager);
        get disposed(): boolean;
        /**测量绘制gpu纹理*/
        measureAndDraw(): void;
        /**添加引用的显示对象
        * @param display 显示对象
        */
        addReference(display: IBatch): void;
        /**移除引用的显示对象
         * @param display 显示对象
         * @return 返回是否无显示对象引用此batch
        */
        removeReference(display: IBatch): void;
        /**合批销毁*/
        dispose(): void;
        protected beforeToPool(): void;
        clear(): void;
        inPool: boolean;
        outPoolInit(): void;
    }
}
declare module GYLite {
    /**合批管理器，管理源纹理的合批信息*/
    class BatchManager implements IResource, IUpdate {
        $disposed: boolean;
        protected _batchDict: any;
        protected _batchDisplayDict: any;
        protected _ownerTexture: egret.Texture;
        protected _invalidReference: boolean;
        $referenceCount: number;
        constructor(o: egret.Texture);
        /**源纹理对图集的引用数*/
        referenceCount(): number;
        /**根据显示对象batchAtlasName属性，获取batchAtlasName名称的图集上面的合批信息
         * @param display 显示对象
        */
        getBatchByDisplay(display: IBatch): BatchInfo;
        addDisplay(display: IBatch, batchInfo: BatchInfo): void;
        /**添加一次合批记录
         * @param display 申请合批的显示对象
         * @param atlasInfo 合批图集小图信息
         * @param atlas 合批图集
         * @param batchRes 合批资源对象
         * @return 此次合批信息
        */
        addBatch(display: IBatch, atlasInfo: AtlasInfo, atlas: Atlas, batchRes: ResObject): BatchInfo;
        /***移除合批记录
         * @param atlasInfo 合批图集小图信息
        */
        removeBatch(batchInfo: BatchInfo): void;
        /***移除在指定display的合批记录，如果无display引用此源纹理的合批会被移除
         * @param display 显示对象
        */
        removeDisplayBatch(display: IBatch): void;
        get disposed(): boolean;
        dispose(): void;
        invalidReference(): void;
        validReference(): void;
        updateView(): void;
        updating: boolean;
    }
}
declare module GYLite {
    class GYDefaultFilter extends egret.CustomFilter {
        constructor(vertexSrc?: string, fragmentSrc?: string, uniforms?: any);
    }
}
declare module GYLite {
    class GYShader {
        private static _d2_vert_src;
        private static _d2_frag_src;
        private static _d2_primitive_frag;
        static getD2VertSrc(): string;
        static getD2FragSrc(): string;
        static getD2_primitive_frag(): string;
    }
}
declare module GYLite {
    class GYSkin implements IGYSkin {
        protected _hostComponent: GYSprite;
        constructor();
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        clone(): IGYSkin;
        copy(val: IGYSkin): void;
        release(): void;
    }
}
declare module GYLite {
    class ButtonSkin extends GYSkin implements IButtonSkin {
        protected _stsVec: egret.Texture[];
        protected _curSkin: any;
        protected _text: GYText;
        protected _hasLabel: boolean;
        protected _scale9GridRect: Scale9GridRect;
        /**按钮皮肤，自定义需实现接口IButtonSkin
         * 皮肤数组，包括8个状态的Texture
         * */
        constructor(skinVec: egret.Texture[], rect?: Scale9GridRect);
        release(): void;
        drawSkin(state: number): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        get width(): number;
        get height(): number;
        set width(value: number);
        set height(value: number);
        set scale9GridRect(value: Scale9GridRect);
        get scale9GridRect(): Scale9GridRect;
        /**当s.label被赋值的时候自动产生Mytext文本(在此之前不存在s.labelDisplay)，在s.label为null时，文本对象不会被清除* */
        set label(val: string);
        get label(): string;
        get labelDisplay(): GYText;
        set labelDisplay(val: GYText);
        /**此函数只复制s.labelDisplay的textFormat部分属性 和复制布局*/
        cloneLabel(): GYText;
        /**此函数复制皮肤属性 如s.label等除按钮本身的其他属性（目前只有Label）*/
        copy(skin: IGYSkin): void;
        /**此函数不克隆s.labelDisplay*/
        clone(): IGYSkin;
    }
}
/**
 @author 迷途小羔羊
 2015.6.5
 */
declare module GYLite {
    class CheckBoxSkin extends GYSkin implements ICheckBoxSkin {
        protected _stsVec: egret.Texture[];
        protected _curSkin: any;
        protected _text: GYText;
        protected _hasLabel: boolean;
        protected _gap: number;
        /**按钮皮肤，自定义需实现接口IButtonSkin
         * 皮肤数组，包括8个状态的Texture
         * */
        constructor(skinVec: egret.Texture[]);
        release(): void;
        drawSkin(state: number): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        get width(): number;
        get height(): number;
        set width(value: number);
        set height(value: number);
        set gap(val: number);
        get gap(): number;
        /**当s.label被赋值的时候自动产生Mytext文本(在此之前不存在s.labelDisplay)，在s.label为null时，文本对象不会被清除 * */
        set label(val: string);
        get label(): string;
        get labelDisplay(): GYText;
        set labelDisplay(val: GYText);
        /**此函数只克隆s.labelDisplay的textFormat*/
        cloneLabel(): GYText;
        /**此函数复制皮肤属性 如s.label s.gap等皮肤的属性*/
        copy(skin: IGYSkin): void;
        /**此函数不克隆s.labelDisplay*/
        clone(): IGYSkin;
    }
}
declare module GYLite {
    interface IButtonSkin extends IGYSkin {
        drawSkin(state: number): void;
        width: number;
        height: number;
        label: string;
        labelDisplay: GYText;
        cloneLabel(): GYText;
    }
}
declare module GYLite {
    interface ICheckBoxSkin extends IButtonSkin {
        gap: number;
    }
}
declare module GYLite {
    interface IRadioButtonSkin extends IButtonSkin {
        gap: number;
    }
}
declare module GYLite {
    class LinkButtonSkin extends GYSkin implements IButtonSkin {
        protected _stsVec: TextFormat[];
        protected _curSkin: GYText;
        constructor(skinVec: TextFormat[]);
        drawSkin(state: number): void;
        get width(): number;
        get height(): number;
        set width(val: number);
        set height(val: number);
        set label(val: string);
        get label(): string;
        get labelDisplay(): GYText;
        set labelDisplay(val: GYText);
        /**此函数只克隆s.labelDisplay的textFormat*/
        cloneLabel(): GYText;
        /**此函数复制皮肤属性 如s.label等皮肤的属性*/
        copy(skin: IGYSkin): void;
        clone(): IGYSkin;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
    }
}
/**
 @author 迷途小羔羊
 2015.6.5
 */
declare module GYLite {
    class RadioButtonSkin extends GYSkin implements IRadioButtonSkin {
        protected _stsVec: egret.Texture[];
        protected _curSkin: any;
        protected _text: GYText;
        protected _hasLabel: boolean;
        protected _gap: number;
        /**按钮皮肤，自定义需实现接口IRadioButtonSkin
         * 皮肤数组，包括8个状态的Bitmapdata
         * */
        constructor(skinVec: egret.Texture[]);
        release(): void;
        drawSkin(state: number): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        get width(): number;
        get height(): number;
        set width(value: number);
        set height(value: number);
        set gap(val: number);
        get gap(): number;
        /**当s.label被赋值的时候自动产生Mytext文本(在此之前不存在s.labelDisplay)，在s.label为null时，文本对象不会被清除
         * */
        set label(val: string);
        get label(): string;
        get labelDisplay(): GYText;
        set labelDisplay(val: GYText);
        /**此函数只克隆s.labelDisplay的textFormat*/
        cloneLabel(): GYText;
        /**此函数复制皮肤属性 如s.label s.gap等皮肤的属性*/
        copy(skin: IGYSkin): void;
        /**此函数不克隆s.labelDisplay*/
        clone(): IGYSkin;
    }
}
declare module GYLite {
    class GYSkinTheme implements ISkinTheme {
        /**主题名称，唯一标识*/
        get themeName(): string;
        /**获得默认的按钮皮肤*/
        GetButtonSkin(): IGYSkin;
        /**获得默认的GYLinkButton皮肤*/
        GetLinkButtonSkin(): IGYSkin;
        /**获得默认的GYScrollerV皮肤*/
        GetScrollBarSkinV(): IGYSkin;
        /**获得默认的GYScrollerH皮肤*/
        GetScrollBarSkinH(): IGYSkin;
        /**获得默认的List皮肤（这个没用到）*/
        GetListSkin(): IGYSkin;
        /**获得默认的GYTextInput皮肤*/
        GetTextInputSkin(): IGYSkin;
        /**获得默认的TextFormat*/
        GetTextTextFormat(): TextFormat;
        /**获得默认的GYProgressBar皮肤*/
        GetProgressBarSkin(): IGYSkin;
        /**获得默认的GYCheckBox皮肤*/
        GetCheckBoxSkin(): IGYSkin;
        /**获得默认的GYRadioButton皮肤*/
        GetRadioButtonSkin(): IGYSkin;
        /**获得默认的GYSlider皮肤*/
        GetSliderSkin(): IGYSkin;
        /**获得默认的GYTabButton皮肤*/
        GetTabButtonSkin(): IGYSkin;
        /**获得默认的GYCombo的下拉按钮皮肤*/
        GetComboButtonSkin(): IGYSkin;
        /**获得默认的GYCombo的下拉按钮皮肤*/
        GetMenuSkin(): IGYSkin;
        /**获得默认的窗口皮肤*/
        GetWindowSkin(): IGYSkin;
        /**获得默认的窗口皮肤*/
        GetTextAreaSkin(): IGYSkin;
        /**获得默认的s.toolTip*/
        GetToolTip(): GYToolTip;
        /**快速创建一个主题菜单Menu */
        GetMenu(w?: number, h?: number): GYMenu;
        /**快速创建一个主题组合输入菜单ComboBox */
        GetComboBox(w?: number, h?: number): GYComboBox;
        /**初始化主题*/
        initRes(): void;
        /**设置资源*/
        protected setRes(): void;
        getBmp(n: string): egret.Texture;
        commonBtn_upBD: egret.Texture;
        commonBtn_overBD: egret.Texture;
        commonBtn_downBD: egret.Texture;
        commonBtn_disabledBD: egret.Texture;
        commonBtn_selUpBD: egret.Texture;
        commonBtn_selOverBD: egret.Texture;
        commonBtn_selDownBD: egret.Texture;
        commonBtn_selDisabledBD: egret.Texture;
        scaleBtn_upBD: egret.Texture;
        scaleBtn_overBD: egret.Texture;
        scaleBtn_downBD: egret.Texture;
        scaleBtn_disabledBD: egret.Texture;
        scaleBtn_selUpBD: egret.Texture;
        scaleBtn_selOverBD: egret.Texture;
        scaleBtn_selDownBD: egret.Texture;
        scaleBtn_selDisabledBD: egret.Texture;
        check_upBD: egret.Texture;
        check_overBD: egret.Texture;
        check_downBD: egret.Texture;
        check_disabledBD: egret.Texture;
        check_selUpBD: egret.Texture;
        check_selOverBD: egret.Texture;
        check_selDownBD: egret.Texture;
        check_selDisabledBD: egret.Texture;
        radio_upBD: egret.Texture;
        radio_overBD: egret.Texture;
        radio_downBD: egret.Texture;
        radio_disabledBD: egret.Texture;
        radio_selUpBD: egret.Texture;
        radio_selOverBD: egret.Texture;
        radio_selDownBD: egret.Texture;
        radio_selDisabledBD: egret.Texture;
        upArrow_upBD: egret.Texture;
        upArrow_overBD: egret.Texture;
        upArrow_downBD: egret.Texture;
        upArrow_disabledBD: egret.Texture;
        downArrow_upBD: egret.Texture;
        downArrow_overBD: egret.Texture;
        downArrow_downBD: egret.Texture;
        downArrow_disabledBD: egret.Texture;
        rightArrow_upBD: egret.Texture;
        rightArrow_overBD: egret.Texture;
        rightArrow_downBD: egret.Texture;
        rightArrow_disabledBD: egret.Texture;
        leftArrow_upBD: egret.Texture;
        leftArrow_overBD: egret.Texture;
        leftArrow_downBD: egret.Texture;
        leftArrow_disabledBD: egret.Texture;
        sliderBtn_upVBD: egret.Texture;
        sliderBtn_overVBD: egret.Texture;
        sliderBtn_downVBD: egret.Texture;
        sliderBtn_disabledVBD: egret.Texture;
        scrollerBackVBD: egret.Texture;
        sliderBtn_upHBD: egret.Texture;
        sliderBtn_overHBD: egret.Texture;
        sliderBtn_downHBD: egret.Texture;
        sliderBtn_disabledHBD: egret.Texture;
        scrollerBackHBD: egret.Texture;
        tab_upBD: egret.Texture;
        tab_overBD: egret.Texture;
        tab_downBD: egret.Texture;
        tab_disabledBD: egret.Texture;
        tab_selUpBD: egret.Texture;
        tab_selOverBD: egret.Texture;
        tab_selDownBD: egret.Texture;
        tab_selDisabledBD: egret.Texture;
        slider_upBD: egret.Texture;
        slider_overBD: egret.Texture;
        slider_downBD: egret.Texture;
        slider_disabledBD: egret.Texture;
        slider_backBD: egret.Texture;
        slider_progBD: egret.Texture;
        progressBD: egret.Texture;
        progress_backBD: egret.Texture;
        textInputBD: egret.Texture;
        textAreaBD: egret.Texture;
        menuBackBD: egret.Texture;
        windowBackBD: egret.Texture;
        closeBtn_upBD: egret.Texture;
        closeBtn_overBD: egret.Texture;
        closeBtn_downBD: egret.Texture;
        closeBtn_disabledBD: egret.Texture;
        commonBtnSkinVec: egret.Texture[];
        linkBtnSkinVec: TextFormat[];
        scaleBtnSkinVec: egret.Texture[];
        checkBoxSkinVec: egret.Texture[];
        tabBtnSkinVec: egret.Texture[];
        radioBtnSkinVec: egret.Texture[];
        sliderBtnSkinVec: egret.Texture[];
        scrollUpArrowSkinVec: egret.Texture[];
        scrollDownArrowSkinVec: egret.Texture[];
        scrollLeftArrowSkinVec: egret.Texture[];
        scrollRightArrowSkinVec: egret.Texture[];
        scrollSliderVSkinVec: egret.Texture[];
        scrollSliderHSkinVec: egret.Texture[];
        closeBtnVec: egret.Texture[];
        inputSkin: TextInputSkin;
        barTextFormat: TextFormat;
        commonRect: Scale9GridRect;
        smallRect: Scale9GridRect;
        sizeRect3_3_2_2: Scale9GridRect;
        sizeRect20_20_50_20: Scale9GridRect;
        protected toolTip: IGYDisplay;
        protected toolTipMatrix: egret.Matrix;
    }
}
declare module GYLite {
    interface IGYSkin {
        hostComponent: GYSprite;
        clone(): IGYSkin;
        copy(val: IGYSkin): void;
        /**释放皮肤资源*/ release(): void;
    }
}
declare module GYLite {
    /**自定义皮肤主题，需实现此接口
     * */
    interface ISkinTheme {
        GetButtonSkin(): IGYSkin;
        GetTabButtonSkin(): IGYSkin;
        GetLinkButtonSkin(): IGYSkin;
        GetScrollBarSkinV(): IGYSkin;
        GetScrollBarSkinH(): IGYSkin;
        GetListSkin(): IGYSkin;
        GetTextInputSkin(): IGYSkin;
        GetCheckBoxSkin(): IGYSkin;
        GetRadioButtonSkin(): IGYSkin;
        GetProgressBarSkin(): IGYSkin;
        GetSliderSkin(): IGYSkin;
        GetTextTextFormat(): TextFormat;
        GetMenu(w: number, h: number): GYMenu;
        GetComboBox(w: number, h: number): GYComboBox;
        GetComboButtonSkin(): IGYSkin;
        GetMenuSkin(): IGYSkin;
        GetWindowSkin(): IGYSkin;
        GetTextAreaSkin(): IGYSkin;
        initRes(): void;
        getBmp(n: string): egret.Texture;
        GetToolTip(): GYToolTip;
    }
}
declare module GYLite {
    interface IMenuSkin extends IGYSkin {
        backgroundImage: GYScaleSprite;
    }
}
declare module GYLite {
    class MenuSkin extends GYSkin implements IMenuSkin {
        protected _background: egret.Texture;
        protected _backScaleShape: GYScaleSprite;
        protected _rect: Scale9GridRect;
        constructor(back?: egret.Texture, rect?: Scale9GridRect);
        release(): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        set background(val: egret.Texture);
        get backgroundImage(): GYScaleSprite;
        set scale9GridRect(val: Scale9GridRect);
        clone(): IGYSkin;
    }
}
declare module GYLite {
    interface IScrollerSkin extends IGYSkin {
        arrowBtn1: GYButton;
        arrowBtn2: GYButton;
        scrollBar: GYButton;
        sliderBg: GYScaleSprite;
    }
}
declare module GYLite {
    class ScrollerSkin extends GYSkin implements IScrollerSkin {
        protected _arrowBtn1: GYButton;
        protected _arrowBtn2: GYButton;
        protected _scrollBar: GYButton;
        protected _sliderBg: GYScaleSprite;
        constructor(sliderSkin: any, sliderBg: egret.Texture, arrowSkin1?: any, arrowSkin2?: any, bgRect?: Scale9GridRect);
        release(): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        /**第一个箭头按钮*/
        get arrowBtn1(): GYButton;
        /**第二个箭头按钮*/
        get arrowBtn2(): GYButton;
        /**滑块*/
        get scrollBar(): GYButton;
        /**滑动区域*/
        get sliderBg(): GYScaleSprite;
        clone(): IGYSkin;
    }
}
declare module GYLite {
    class TextAreaSkin extends GYSkin implements IGYSkin {
        protected _background: egret.Texture;
        protected _backScaleShape: GYScaleSprite;
        protected _rect: Scale9GridRect;
        constructor(back?: egret.Texture, rect?: Scale9GridRect);
        release(): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        set width(value: number);
        set height(value: number);
        get width(): number;
        get height(): number;
        set background(val: egret.Texture);
        set scale9GridRect(val: Scale9GridRect);
        clone(): IGYSkin;
    }
}
declare module GYLite {
    class TextInputSkin extends GYSkin implements IGYSkin {
        protected _background: egret.Texture;
        protected _backScaleShape: GYScaleSprite;
        protected _rect: Scale9GridRect;
        constructor(back?: egret.Texture, rect?: Scale9GridRect);
        release(): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        set width(value: number);
        set height(value: number);
        set background(val: egret.Texture);
        set scale9GridRect(val: Scale9GridRect);
        clone(): IGYSkin;
    }
}
declare module GYLite {
    interface IProgressBarSkin extends IGYSkin {
        width: number;
        height: number;
        barWidth: number;
        barHeight: number;
        backgroundWidth: number;
        backgroundHeight: number;
        barX: number;
        barY: number;
        clipX: number;
        clipY: number;
        mode: number;
        rotation: number;
        textSkin: GYText;
        backgroundSkin: GYScaleSprite;
        barSkin: GYScaleSprite;
    }
}
declare module GYLite {
    interface ISliderSkin extends IProgressBarSkin {
        sliderX: number;
        sliderY: number;
        sliderButton: GYButton;
    }
}
declare module GYLite {
    interface IWindowSkin extends IGYSkin {
        setIcon(val: egret.Texture): void;
        setTitle(val: string): void;
        backgoundImage: GYScaleSprite;
        closeBtn: GYButton;
        icon: GYImage;
        title: GYText;
    }
}
declare module GYLite {
    /**进度条皮肤*/
    class ProgressBarSkin implements IProgressBarSkin {
        protected _backgroundSkin: GYScaleSprite;
        protected _barSkin: GYScaleSprite;
        protected _textSkin: GYText;
        protected _hostComponent: GYSprite;
        protected _rotation: number;
        protected _barX: number;
        protected _barY: number;
        /**@param s.backgroundSkin 背景皮肤
         * @param s.barSkin 进度条皮肤
         * @param s.textSkin 文本皮肤 默认null，没有进度文本*/
        constructor(backgroundSkin: GYScaleSprite, barSkin: GYScaleSprite, t?: TextFormat);
        release(): void;
        get width(): number;
        get height(): number;
        set width(val: number);
        set height(val: number);
        get textSkin(): GYText;
        set barX(val: number);
        set barY(val: number);
        set backgroundWidth(val: number);
        set backgroundHeight(val: number);
        set barWidth(val: number);
        set barHeight(val: number);
        set clipX(val: number);
        set clipY(val: number);
        set mode(val: number);
        get barX(): number;
        get barY(): number;
        get barWidth(): number;
        get barHeight(): number;
        get backgroundWidth(): number;
        get backgroundHeight(): number;
        get clipX(): number;
        get clipY(): number;
        get mode(): number;
        set rotation(val: number);
        get rotation(): number;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        /**此函数复制皮肤属性 如s.label gap等皮肤的属性*/
        copy(skin: IGYSkin): void;
        /**克隆皮肤*/
        clone(): IGYSkin;
        get backgroundSkin(): GYScaleSprite;
        get barSkin(): GYScaleSprite;
    }
}
declare module GYLite {
    /**滑块条*/
    class SliderSkin extends ProgressBarSkin implements ISliderSkin {
        protected _sliderBtn: GYButton;
        protected _sliderX: number;
        protected _sliderY: number;
        /**@param s.backgroundSkin 背景皮肤
         * @param s.barSkin 进度条皮肤
         * @param textSkin 文本皮肤 默认null，没有进度文本*/
        constructor(backgroundSkin: GYScaleSprite, barSkin: GYScaleSprite, sliderBtnSkin?: IButtonSkin);
        release(): void;
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        set rotation(val: number);
        get rotation(): number;
        set sliderX(val: number);
        set sliderY(val: number);
        get sliderX(): number;
        get sliderY(): number;
        get sliderButton(): GYButton;
        /**克隆皮肤*/
        clone(): IGYSkin;
        /**此函数复制皮肤属性 如s.label gap等皮肤的属性*/
        copy(skin: IGYSkin): void;
    }
}
declare module GYLite {
    class TitleWindowSkin implements IWindowSkin {
        protected _backgroundImage: GYScaleSprite;
        protected _icon: GYImage;
        protected _title: GYText;
        protected _closeBtn: GYButton;
        protected _hostComponent: GYSprite;
        constructor(background?: egret.Texture, scale9GridRect?: Scale9GridRect, closeSkin?: IButtonSkin);
        set hostComponent(val: GYSprite);
        get hostComponent(): GYSprite;
        setTitle(val: string): void;
        get title(): GYText;
        setIcon(val: egret.Texture): void;
        get icon(): GYImage;
        clone(): IGYSkin;
        copy(val: IGYSkin): void;
        release(): void;
        set icon(value: GYImage);
        set title(value: GYText);
        get closeBtn(): GYButton;
        get backgoundImage(): GYScaleSprite;
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    class SysError {
        static NONE: SysError;
        /**图集创建尺寸超出限制*/ static ATLAS_SIZE_LIMIT: SysError;
        /**图集数量超出限制*/ static ATLAS_NUM_LIMIT: SysError;
        /**不允许创建同名的图集*/ static ATLAS_DUPLICATE: SysError;
        /**无数据源无法合批*/ static BATCH_SOURCE_LOST: SysError;
        /**矢量绘制合批失败*/ static BATCH_GRAPHICS_FAIL: SysError;
        /**贝塞尔计算溢出*/ static BEZIER_ERROR: SysError;
        /**Separator Error 找不到最近端点*/ static SEPARATOR_CANNOT_FINDNEAREST: SysError;
        /**Separator Error 非法端点*/ static SEPARATOR_INVALID_POINT: SysError;
        /**Separator Error 端点数量不够*/ static SEPARATOR_NUM_NOT_ENOUGH: SysError;
        /**Separator Error 路径是直线*/ static SEPARATOR_PATH_IS_LINE: SysError;
        /**Separator Error 路径相交*/ static SEPARATOR_PATH_CROSS: SysError;
        /**同名图集没有区域可插入*/ static ATLAS_INSERT_SIZE_LIMIT: SysError;
        private _code;
        private _msg;
        constructor(code: number);
        get code(): number;
        get msg(): string;
        throwError(param: any[]): SysError;
    }
}
declare module GYLite {
    enum ThreadID {
        /**打造所有红点的刷新*/ DAZAO_ALLRP = 0,
        /**迷雾障碍设置*/ MIST_BARRIER = 1,
        /**寻路*/ FIND_PATH = 2
    }
    class Thread {
        static threads: {
            [id: number]: Thread;
        };
        static idc: number;
        /**执行线程函数
         * @param id 线程id 固定线程参考ThreadID常量，如果传入-1，则创建一个唯一的id，注意自动创建id需要管理返回的线程避免内存泄露
         * @param threadFun 线程函数，线程函数的编写参考底部注释说明
         * @param threadFunParams 线程函数的传入参数数组，默认null
         * @param callBack 执行结束的回调，默认null
         * @param thisObj 线程函数和结束回调的this，默认null
         * @param immediate 是否立即执行
        */
        static runThread(id: number, threadFun: Function, threadObj: any, threadFunParams?: any[], callBack?: Function, thisObj?: any, immediate?: boolean): Thread;
        /**是否存在线程
         * @param id 线程id 参考ThreadID常量
         * @return 存在则返回线程
         */
        static hasThread(id: number): Thread;
        /**获取线程
         * @param id 线程id 参考ThreadID常量
         */
        static getThread(id: number): Thread;
        private _globalThis;
        private _func;
        varObj: any;
        private _params;
        private _cpuTime;
        private _destroyed;
        private _excCall;
        private _excCallObj;
        private _excTime;
        private _subThread;
        private _inited;
        private _runStartTime;
        private _costTime;
        private _id;
        private _running;
        private _parentThread;
        isEnd: boolean;
        returnValue: any;
        step: number;
        private _timeId;
        constructor(id: number, parentThread?: Thread);
        reset(func: Function, thisObj: any, params?: any[], cpuTime?: number): void;
        /**运行线程*/
        run(): void;
        /**设置线程结束回调*/
        setCallBack(callBack: Function, callBackObj: any): void;
        /**运行一个子级线程
         * @param index 线程索引
         * @param func 线程方法
         * @param thisObj 线程方法的this对象
         * @param params 线程方法的参数
         * @param cpuTime 线程方法每帧占用的cpu时间片
         * @return 运行成功
        */
        runSubThread(index: number, func: Function, thisObj: any, params?: any[], cpuTime?: number): boolean;
        /**获取子级线程
         * @param index 子级线程下标id
        */
        getSubThread(index: number): Thread;
        /**清理所有子级线程
         * @param indexArr 指定清理的子级线程下标id数组，默认null，清理所有
        */
        clearSubThread(indexArr?: number[]): void;
        /**线程是否已经初始化*/
        get inited(): boolean;
        init(variables?: any): void;
        /**线程变量定义集*/
        getVariable(n: string): any;
        excEnd(returnValue: any): void;
        /**线程是否执行超时*/
        isTimeout(): boolean;
        next(): void;
        destroy(): void;
        clear(): void;
        get running(): boolean;
        get params(): any[];
    }
}
declare module GYLite {
    class TimeManager {
        private static timer;
        static dic: Array<any>;
        static timeoutDic: Dictionary;
        static timeIntervalDic: Dictionary;
        static init(): void;
        /**注册秒计监听
         * @param func 回调函数func(t:number);t为程序启动距离现在的毫秒数
         * @param thisObject
         * @return id 监听函数的唯一id
         * */
        static registered(func: Function, thisObject: any): number;
        private static getId;
        private static timeEvent;
        /**移除秒计监听
         * @param id 唯一标识id
         * @param func 监听函数
         * */
        static unRegistered(id: number, func: Function, thisObject: any): void;
        /**功能如同setTimeout，结束内部会自动调clearTimeout清理，重复调会自动停止之前未执行的timeout(请注意匿名函数不算重复的)*/
        static timeOut(func: Function, thisObject: any, delay: number, ...rest: any[]): number;
        /**移除timeout
         * @param id 唯一标识id
         * @param func 监听函数
         * */
        static unTimeOut(id: number, func: Function, thisObject: any): void;
        /**功能如同setInterval，重复调会自动停止之前未执行的timeInterval(请注意匿名函数不算重复的)*/
        static timeInterval(func: Function, thisObject: any, delay: number, ...rest: any[]): number;
        /**移除TimeManager.timeInterval监听
         * @param id 唯一标识id
         * @param func 监听函数
         * */
        static unTimeInterval(id: number, func: Function, thisObject: any): void;
    }
}
declare module GYLite {
    class Listener {
        private _listenerVec;
        private _listenId;
        private _inPool;
        private static c;
        constructor();
        addListener(listener: IListener): number;
        removeListener(listener: IListener): number;
        dataChange(): void;
        get listenId(): number;
    }
}
declare module GYLite {
    /**DraggerHandle类是一个简易的拖动类，快速创建一个拖动响应的操作
     * 绑定对象，当对象触发MOUSE_DOWN事件，就提供一个帧频调用的回调函数，使用s.addBind添加拖动的响应函数
     * */
    class DraggerHandle {
        private _bindList;
        private _bindObjList;
        private _handle;
        private _dragTarget;
        private _dropTarget;
        private _dragMouseX;
        private _dragMouseY;
        private _touchId;
        private _updateFunc;
        private _updateObj;
        private _stopTouchEvent;
        private _longTapTime;
        private _longTapId;
        private _dragState;
        private _isDragMove;
        /**是否其他手指抬起是否不判断其id，如果为true，则不判断id，其他手指id的触碰抬起也会触发结束拖拽，默认true*/ ignoreOtherTouch: boolean;
        constructor();
        /**当前响应的触碰id*/
        get touchId(): number;
        get dragState(): number;
        set longTapTime(val: number);
        /**长按响应*/
        get longTapTime(): number;
        /**长按延时id -1代表没有长按触发*/
        get longTapId(): number;
        /**当拖拽产生时，是否屏蔽鼠标点击事件*/
        whenDragStopTouch(val: boolean): void;
        private touchMove;
        private draggingLoop;
        private tap;
        private startDragFunc;
        private doStartDrag;
        /**帧频刷新回调
         * @param func 回调函数 (d:DraggerHandler)=>void
         * @param obj this指向
        */
        setUpdateFunc(func: Function, obj: any): void;
        private frameLoop;
        private stopDragFunc;
        stopDrag(): void;
        startDrag(target: Object, touchId?: number): void;
        /**添加s.handle拖动的绑定，拖动时回调binder函数来通知
         * @param binder(drager:DraggerHandle):void回调函数
         * */
        addBind(binder: Function, thisObject: any): void;
        /**清除s.handle拖动的绑定*/
        delBind(binder: Function, thisObject: any): void;
        /**启动拖动*/
        run(gySp: IGYDisplay): void;
        /**清除s.handle的拖动*/
        clear(): void;
        /**被点击绑定的GYSprite*/
        get handle(): IGYDisplay;
        /**被拖动的DisplayObject*/
        get dragTarget(): any;
        /**被放置的DisplayObject*/
        get dropTarget(): any;
        /**拖动开启时，s.handle的mouseX*/
        get dragMouseX(): number;
        /**拖动开启时，s.handle的mouseY*/
        get dragMouseY(): number;
        private static handleVec;
        /**获取拖动监听实例*/
        static getInstance(gySp: IGYDisplay): DraggerHandle;
        /**对被销毁的对象的DraggerHandle进行垃圾回收*/
        static gc(): void;
    }
}
declare module GYLite {
    class DragManager {
        private static _dragGroup;
        private static _matrix;
        private static _dragVec;
        private static _dragShapes;
        /**拖动对象的s.x偏移*/ static offsetX: number;
        /**拖动对象的s.y偏移*/ static offsetY: number;
        /**拖动对象的透明度*/ static alpha: number;
        /**拖动对象的是否平滑处理*/ static smoothing: boolean;
        /**默认s.x偏移*/ static defaultOffsetX: number;
        /**默认s.y偏移*/ static defaultOffsetY: number;
        /**不锁定位置*/ static NONE_LCOK: number;
        /**锁定到对象中心*/ static CENTER_LCOK: number;
        /**锁定到对象左上角*/ static LEFT_TOP_LCOK: number;
        /**锁定到对象右上角*/ static RIGHT_TOP_LCOK: number;
        /**锁定到对象左下角*/ static LEFT_BOTTOM_LCOK: number;
        /**锁定到对象右下角*/ static RIGHT_BOTTOM_LCOK: number;
        static Init(): void;
        /**设置为拖动对象* */
        static setDrag(dragger: IDragger): void;
        /**取消拖动* */
        static cancelDrag(dragger: IDragger): void;
        /**添加到为拖动组，任意对象触发拖动时，一并跟随, 释放拖动自动清除拖动组
         * */
        static addToDragGroup(dragger: IDragger): void;
        /**从拖动组删除
         * @param dargger 拖动对象
         * */
        static deleteFromDragGroup(dragger: IDragger): void;
        /**清除拖动组 */
        static clearDraggerGroup(): void;
        /**设置偏移量为默认值 */
        static resetOffset(): void;
        private static dragStop;
        private static dragStart;
        private static dragging;
        private static getDragShape;
    }
}
declare module GYLite {
    class GYKeyboard {
        private static _instance;
        static getInstance(): GYKeyboard;
        private _keyListeners;
        private _keyDownDict;
        private _typing;
        /**是否在输入框输入时仍然发出按键事件*/
        keyEnabledWhenTyping: boolean;
        constructor();
        addKeyListener(k: IKeyBoardObject): void;
        removeKeyListener(k: IKeyBoardObject): void;
        private kDown;
        private kUp;
        /**按下键的时间戳，0为未按下*/
        isKeyDown(keyCode: number): number;
        releaseKey(keyCode: number): void;
        isCtrlDown(): boolean;
        isAltDown(): boolean;
        isShiftDown(): boolean;
        isTyping(val: boolean): void;
    }
}
declare module GYLite {
    interface IKeyBoardObject extends IResource {
        keyFocus(): boolean;
        kDown(keyCode: number, e?: KeyboardEvent): void;
        kUp(keyCode: number, e?: KeyboardEvent): void;
    }
}
declare module GYLite {
    /**羔羊缓动类*/
    class GYTween {
        private _startTime;
        delay: number;
        updateFunc: Function;
        completeFunc: Function;
        startFunc: Function;
        thisObject: any;
        duration: number;
        target: IResource;
        tweenArr: Array<TweenData>;
        private _intervalId;
        private _isRunning;
        private _isReserve;
        private _completeClear;
        keepFrom: boolean;
        constructor();
        /**@param s.isReserve 是否翻转播放*/
        run(isReserve?: boolean): void;
        toRun(isReserve?: boolean): void;
        stop(): void;
        get isRunning(): boolean;
        private loop;
        /**销毁GYTween对象
         * @param tar 操控的显示对象
         * */
        disposeByTarget(tar: any): void;
        clear(removeUse?: boolean): void;
        get startTime(): number;
        /**播放完成后自动清理tween*/
        get completeClear(): boolean;
        set completeClear(value: boolean);
        /**是否翻转播放*/
        get isReserve(): boolean;
        /**匀速缓动*/
        static commonEase(tData: TweenData, t: GYTween): void;
        /**加速缓动*/
        static addEase(tData: TweenData, t: GYTween): void;
        /**减速缓动*/
        static reduceEase(tData: TweenData, t: GYTween): void;
        private static _pool;
        private static _useTween;
        static to(target: any, tweenArr: Array<TweenData>, duration: number, delay?: number, thisObject?: any, completeFunc?: Function, startFunc?: Function, updateFunc?: Function, runImmediate?: boolean, isClear?: boolean): GYTween;
        /***对已经被销毁的对象的tween进行垃圾回收*/
        static gc(): void;
    }
}
declare module GYLite {
    class TweenData {
        /**需要tween的属性名称*/
        propertyName: string;
        /**起点值*/
        from: number;
        /**终点值*/
        to: number;
        /**补间函数，一个每帧会调度的函数，直到时间结束
         * ease(tData:TweenData, tweenDisplay:egret.DisplayObject)
        */
        ease: Function;
        /**设定的起点值，由于可以倒着播放，此值保存的是起始设定的起点*/
        initFrom: number;
        /**设定的终点值，由于可以倒着播放，此值保存的是起始设定的终点*/
        initTo: number;
        /**附加参数*/
        param: any;
        constructor();
        clear(): void;
        private static _pool;
        static getInstance(propertyName?: string, to?: number, from?: number, ease?: Function, param?: any): TweenData;
    }
}
declare module GYLite {
    class ColorUtil {
        static revertColor(color: number): number;
        static lerpColor(color: number, per: number): number;
        static getRGBColor(r: number, g: number, b: number): number;
        static getARGBColor(r: number, g: number, b: number, a?: number): number;
    }
}
declare module GYLite {
    class CommonUtil {
        static loopTime: number;
        protected static _stage: egret.Stage;
        private static _loopFuncVec;
        private static _loopFuncObj;
        static frameRate: number;
        static frameDelta: number;
        /**标准帧率下的速度系数（以30帧为标准，如果提高到60，则是0.5）*/
        static rateParam: number;
        static Init(stage: egret.Stage): void;
        /**
         * 添加val到舞台帧频执行列表中，ENTERFRAME事件触发时执行
         * @param Function类型，无参数val();
         * */
        static addStageLoop(val: Function, thisObject: any): void;
        /**
         * 从舞台帧频执行列表中删除val函数
         * @param val 帧频函数
         * */
        static delStageLoop(val: Function, thisObject: any): void;
        private static stageLoop;
        /**帧频监听列表*/
        static get loopFuncVec(): Function[];
        static get loopFuncObj(): any[];
        /**类型判断，cls参数可以使用字符串(接口只能用字符串参数，因为在h5中只能使用字符串记录接口)，继承链15层以内有效
         * @param obj 对象
         * @param cls 类型
        */
        static GYIs(obj: any, cls: any): boolean;
        /**判断对象是否属于某种类型(包括接口，此方法是通过__type__属性查询，请务必保证ts编译代码附加了__type__继承链)
         * @param obj 对象
         * @param className 完全类名
        */
        static typeIs(obj: any, className: string): boolean;
        /**垃圾回收已经被销毁的对象的loop*/
        static gc(): void;
    }
}
declare module GYLite {
    class Dictionary {
        dict: any;
        constructor();
        getValue(key: any): any;
        setValue(key: any, val: any): void;
        deleteKey(key: any): void;
        private getKeyCode;
    }
}
declare module GYLite {
    class FilterUtil {
        /**黑色描边滤镜*/ static blackGlow: egret.GlowFilter;
        static blackGlowArr: Array<any>;
        /**红色描边滤镜*/ static redGlow: egret.GlowFilter;
        static redGlowArr: Array<any>;
        /**灰度滤镜*/
        static grayColorMatrix: egret.ColorMatrixFilter;
        static grayColorArr: Array<any>;
    }
}
declare module GYLite {
    class Keyboard {
        static A: number;
        static B: number;
        static C: number;
        static D: number;
        static E: number;
        static F: number;
        static G: number;
        static H: number;
        static I: number;
        static J: number;
        static K: number;
        static L: number;
        static M: number;
        static N: number;
        static O: number;
        static P: number;
        static Q: number;
        static R: number;
        static S: number;
        static T: number;
        static U: number;
        static V: number;
        static W: number;
        static X: number;
        static Y: number;
        static Z: number;
        static BACKSPACE: number;
        static CAPS_LOCK: number;
        static CONTROL: number;
        static ALTERNATE: number;
        static DELETE: number;
        static DOWN: number;
        static END: number;
        static ENTER: number;
        static ESCAPE: number;
        static F1: number;
        static F10: number;
        static F11: number;
        static F12: number;
        static F13: number;
        static F14: number;
        static F15: number;
        static F2: number;
        static F3: number;
        static F4: number;
        static F5: number;
        static F6: number;
        static F7: number;
        static F8: number;
        static F9: number;
        static HOME: number;
        static INSERT: number;
        static LEFT: number;
        static NUMPAD_0: number;
        static NUMPAD_1: number;
        static NUMPAD_2: number;
        static NUMPAD_3: number;
        static NUMPAD_4: number;
        static NUMPAD_5: number;
        static NUMPAD_6: number;
        static NUMPAD_7: number;
        static NUMPAD_8: number;
        static NUMPAD_9: number;
        static NUMPAD_ADD: number;
        static NUMPAD_DECIMAL: number;
        static NUMPAD_DIVIDE: number;
        static NUMPAD_ENTER: number;
        static NUMPAD_MULTIPLY: number;
        static NUMPAD_SUBTRACT: number;
        static NUM_0: number;
        static NUM_1: number;
        static NUM_2: number;
        static NUM_3: number;
        static NUM_4: number;
        static NUM_5: number;
        static NUM_6: number;
        static NUM_7: number;
        static NUM_8: number;
        static NUM_9: number;
        static PAGE_DOWN: number;
        static PAGE_UP: number;
        static RIGHT: number;
        static SHIFT: number;
        static SPACE: number;
        static TAB: number;
        static UP: number;
    }
}
declare module GYLite {
    class MathConst {
        static DOUBLE_PI: number;
        static TRIBLE_PI: number;
        static HALF_PI: number;
        static TRIBLE_HALF_PI: number;
        static QUATER_PI: number;
        static QUATER_TRIBLE_PI: number;
        static ANGLE_ROTATION: number;
        static ROTATION_ANGLE: number;
    }
}
/**
 * @author [迷途小羔羊]
 * 创建于：2018-1-25
 * 最后修改：2018-1-25
 * contact:[qq:229449388,mail:229449388@qq.com]
 */
declare module GYLite {
    class MathUtil {
        private static sin_map;
        private static cos_map;
        static DEG_TO_RAD: number;
        private static _instance;
        constructor();
        /**计算过一点做平行线的另外一点坐标
         * @param p1x 直线上的A点X坐标
         * @param p1y 直线上的A点Y坐标
         * @param p2x 直线上的B点X坐标
         * @param p2y 直线上的B点Y坐标
         * @param p3x 平行线上的C点X坐标
         * @param p3y 平行线上的C点Y坐标
         * @param val 乘量
         * @param 返回的平行点P，赋值null则创建新的
         * @return 返回平行点P
         * */
        static calParallelPoint(p1x: number, p1y: number, p2x: number, p2y: number, p3x: number, p3y: number, val?: number, p?: egret.Point): egret.Point;
        /**计算过一点做垂线的垂点坐标
         * @param p1x 直线上的A点X坐标
         * @param p1y 直线上的A点Y坐标
         * @param p2x 直线上的B点X坐标
         * @param p2y 直线上的B点Y坐标
         * @param p3x 垂线上的C点X坐标
         * @param p3y 垂线上的C点Y坐标
         * @param 返回的垂点P，赋值null则创建新的
         * @return 返回垂点P
         * */
        static calVerticalPoint(p1x: number, p1y: number, p2x: number, p2y: number, p3x: number, p3y: number, p?: egret.Point): egret.Point;
        /**计算两直线交点
         * @param p1StartX 直线A的起点x
         * @param p1StartY 直线A的起点y
         * @param p1EndX 直线A的终点x
         * @param p1EndY 直线A的终点y
         * @param p2StartX 直线B的起点x
         * @param p2StartY 直线B的起点y
         * @param p2EndX 直线B的终点x
         * @param p2EndY 直线B的终点y
         * @param p 接受返回的交点Point对象，传null则创建新的Point对象
         * @param return 返回交点p 不相交则返回null
        */
        static calCrossPoint(p1StartX: number, p1StartY: number, p1EndX: number, p1EndY: number, p2StartX: number, p2StartY: number, p2EndX: number, p2EndY: number, p?: egret.Point, segment?: boolean): egret.Point;
        /**计算线段上指定长度的点的坐标
         * @param p1x 起点x
         * @param p1y 起点y
         * @param p2x 起点x
         * @param p2y 起点y
         * @param len 长度
         * @param angle 偏移角度
         * */
        static calLinePoint(p1x: number, p1y: number, p2x: number, p2y: number, len?: number, angle?: number): egret.Point;
        /**计算出多边形面积*/
        static calPolygonArea(shapeArr: number[], hasDirect?: boolean): number;
        /**计算三角形面积*/
        static calTriangleArea(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, hasDirect?: boolean): number;
        /**快速算出角度value的sin值(近似值)*/
        static sin(value: number): number;
        /**快速算出整数角度的sin值*/
        static sinInt(value: number): number;
        /**快速算出角度value的cos值(近似值)*/
        static cos(value: number): number;
        /**快速算出整数角度的con值*/
        static cosInt(value: number): number;
        /**角度0-2PI内取模*/
        static clampAngle(value: number): number;
        /**角度0-2PI内取模*/
        static clampRotaion(value: number): number;
        /**点集排序，作用是排序后，按顺序连线可以形成不错位的多边形
         * @param vPoints 顶点数组[x1,y1,x2,y2……]
         * @param clockwise 是否顺时针 默认true
        */
        static clockwiseSortPoints(vPoints: number[], clockwise?: boolean): void;
        /**计算多边形交集
         * @param poly1 多边形顶点数组1 [x1,y1,x2,y2……]
         * @param poly2 多边形顶点数组2 [x1,y1,x2,y2……]
         * @param result 存放结果的顶点数组 [x1,y1,x2,y2……]
        */
        static polygonClip(poly1: number[], poly2: number[], result?: number[]): boolean;
        static indexOfPoint(arr: number[], x: number, y: number): number;
        /**通过点积比较a和b的距离重心center的向量大小*/
        static pointCmp(ax: number, ay: number, bx: number, by: number, centerX: number, centerY: number): boolean;
        /**点积*/
        static dot(vx1: number, vy1: number, vx2: number, vy2: number): number;
        /**叉积*/
        static cross(vx1: number, vy1: number, vx2: number, vy2: number): number;
        /**计算直线ab的夹角(或者向量[bx - ax,by - ay])*/
        static calAngle(ax: number, ay: number, bx: number, by: number): number;
        /**计算向量v1和v2的夹角*/
        static calVecAngle(v1x: number, v1y: number, v2x: number, v2y: number): number;
    }
    class MathPoint {
        x: number;
        y: number;
        k: number;
        hash: number;
        constructor(x?: number, y?: number);
    }
}
declare module GYLite {
    var currentTarget: any;
    var preTarget: any;
    var moveDispatched: boolean;
    var dispatch: (type: string, bubbles: boolean, x: number, y: number, tar: any) => void;
    /**
     * @language en_US
     * Enable mouse detection.
     * @version Egret 3.1.0
     * @platform Web
     */
    /**
     * @language zh_CN
     * 启用mouse检测。
     * @version Egret 3.1.0
     * @platform Web
     */
    var enable: (stage: egret.Stage) => void;
    /**
     * @language en_US
     * Set a target of buttonMode property setting is true, when the mouse rolls over the object becomes hand type.
     * @version Egret 3.1.0
     * @platform Web
     */
    /**
     * @language zh_CN
     * 设置一个对象的buttonMode属性，设置为true后，当鼠标滑过该对象会变手型。
     * @version Egret 3.1.0
     * @platform Web
     */
    var setButtonMode: (displayObjcet: egret.DisplayObject, buttonMode: boolean) => void;
    /**
     * @language en_US
     * Setting ON mouseMove event detection, after opening slightly impacts performance, default is not open.
     * @version Egret 3.1.0
     * @platform Web
     */
    /**
     * @language zh_CN
     * 设置开启mouseMove事件检测，开启后性能会稍有影响，默认为不开启。
     * @version Egret 3.1.0
     * @platform Web
     */
    var setMouseMoveEnabled: (enabled: boolean) => void;
    class MouseEvent {
        /**
         * @language en_US
         * When the user mouse movements are called.
         * @version Egret 3.1.0
         * @platform Web
         */
        /**
         * @language zh_CN
         * 当用户鼠标移动时被调用。
         * @version Egret 3.1.0
         * @platform Web
         */
        static MOUSE_MOVE: string;
        /**
        * @language en_US
        * Called when the mouse is within the area where the object (not covered by other object).
        * @version Egret 3.1.0
        * @platform Web
        */
        /**
         * @language zh_CN
         * 当鼠标正在对象所在区域内（没有被其他对象覆盖）时调用。
         * @version Egret 3.1.0
         * @platform Web
         */
        static MOUSE_OVER: string;
        /**
         * @language en_US
         * Called when the mouse out of the object within the Area.
         * @version Egret 3.1.0
         * @platform Web
         */
        /**
         * @language zh_CN
         * 当鼠标移出对象所在区域内时调用。
         * @version Egret 3.1.0
         * @platform Web
         */
        static MOUSE_OUT: string;
        /**
         * @language en_US
         * When the mouse enters an object within the Area calls.
         * @version Egret 3.1.0
         * @platform Web
         */
        /**
         * @language zh_CN
         * 当鼠标进入对象所在区域内调用。
         * @version Egret 3.1.0
         * @platform Web
         */
        static ROLL_OVER: string;
        /**
         * @language en_US
         * Called when the mouse out of the object within the Area.
         * @version Egret 3.1.0
         * @platform Web
         */
        /**
         * @language zh_CN
         * 当鼠标移出对象所在区域内时调用。
         * @version Egret 3.1.0
         * @platform Web
         */
        static ROLL_OUT: string;
    }
}
declare module GYLite {
    class NumberUtil {
        static LARGE_NUMBER: number;
        static TINY_NUMBER: number;
        static TINY_NUMBER_01: number;
        /**四分之π*/ static QUTER_PI: number;
        /**二分之π*/ static HALF_PI: number;
        /**π*/ static PI: number;
        /**二倍π*/ static DOUBLE_PI: number;
        /**获取位为1的数量*/
        static bitCount(val: number): number;
        /**保留多少位小数，小数值为0则不保留
         * @param val 数值
         * @param num n为小数则参数为10的n次方
         **/
        static fixed(val: number, num?: number): number;
        /**求余，小数求余排除精度错误
         * @param val 数值
         * @param modVal 除数
         * @return 返回结果
         **/
        static mod(val: number, modVal: number): number;
        /**判断是否相等(排除精度问题)*/
        static isNumberEqual(valA: number, valB: number): boolean;
        /**排除小数后7位的小数*/
        static accuracyInt(val: number): number;
    }
}
declare module GYLite {
    class PoolUtil {
        private static _idCount;
        private static _poolDict;
        private static _poolCfgDict;
        /**设置对象池数量溢出警告的溢出临界值*/
        static setPoolLengthWarn(cls: any, maxNum: number): void;
        /**获取对象池数量溢出警告的溢出临界值*/
        static getPoolLengthWarn(cls: any): number;
        /**从对象池取出*/
        static fromPool(cls: any): IPoolObject;
        /**回收入对象池*/
        static toPool(poolObject: IPoolObject, cls: any): void;
        /**销毁池子*/
        static destroyPool(cls: any, includeExtend?: boolean): void;
    }
}
declare module GYLite {
    type Route = {
        /**起点索引*/ stInd: number;
        /**终点索引*/ endInd: number;
        /**路线*/ pts: number[];
        /**起点到路线的距离*/ stMinDis: number;
        /**终点到路线的距离*/ endMinDis: number;
    };
    class PositionUtil {
        static _pt: egret.Point;
        constructor();
        /**求过点cx,cy的直线在直线l(ax,ay,bx,by)上的垂点
         * @return 垂点坐标
         * */
        static verticalPoint(ax: number, ay: number, bx: number, by: number, cx: number, cy: number): egret.Point;
        /**判断3个点是顺时针，逆时针，还是在一条直线上面
         * @return 小于0 逆时针 大于0 顺时针 等于0 直线
         * */
        static clockwise(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): number;
        /**判断路径是顺时针，逆时针，还是在一条直线上面
         * @return 1逆时针 -1顺时针 0直线 2无序
         * */
        static clockwisePath(pathArr: Array<any>): number;
        /**计算路径转过的角度
         * @return 路径转过的角度
         * */
        static anglePath(pathArr: Array<any>): number;
        /**判断直线AB是否与直线CD相交*/
        static lineIntersectSide(ax: number, ay: number, bx: number, by: number, cx: number, cy: number, dx: number, dy: number): Boolean;
        /**检测图形是否相交
         * @param shapeA [x1,y1,x2,y2……]
         * @param shapeB [x1,y1,x2,y2……]
        */
        static isShapeInsert(shapeA: number[], shapeB: number[]): boolean;
        /**检测点是否在图形内*/
        static isPointInShape(tX: number, tY: number, arr: Array<number>): boolean;
        /**判断两条线段是否相交*/
        static intersect(ax: number, ay: number, bx: number, by: number, cx: number, cy: number, dx: number, dy: number): Boolean;
        /**转换坐标
         * @param toX 坐标X
         * @param toY 坐标Y
         * @param fromTarget 当前坐标的坐标系
         * @param toTarget 目标坐标的坐标系，为null则只转到全局坐标
         * */
        static convertPos(toX: number, toY: number, fromTarget: egret.Sprite, toTarget?: egret.Sprite): egret.Point;
        /**计算两点连线的线角度（弧度，正负pi）
         * @param aX 终点x
         * @param aY 终点y
         * @param aX 起点x
         * @param aY 起点y
         * */
        static calculateAngle(aX: number, aY: number, bX: number, bY: number): number;
        /**计算两点间xy轴距离和(曼哈顿距离)*/
        static calculateDistance3(aX: number, aY: number, bX: number, bY: number): number;
        /**计算两点间的距离的平方*/
        static calculateDistance2(aX: number, aY: number, bX: number, bY: number): number;
        /**计算两点间的距离*/
        static calculateDistance(aX: number, aY: number, bX: number, bY: number): number;
        static vectorToArray(vec: Array<Number>): Array<any>;
        static vectorToIntArray(vec: Array<any>): Array<any>;
        static vectorToCeilArray(vec: Array<any>): Array<any>;
        static copyNumberVector(sVec: Array<any>, vec: Array<any>): void;
        /**绕点旋转
         * @param ox 绕x
         * @param oy 绕y
         * @param agl 角度
         * demo 你可以尝试以下代码，对图像进行绕点旋转动画
            let img:Laya.Image = new Laya.Image;
            let offsetX:number,offsetY:number;
            offsetX = offsetY = 0;
            img.x = 500;
            img.y = 500;
            img.skin="图片路径";
            Laya.stage.addChild(img);
            CommonUtil.addStageLoop(function(t:number):void{
                let pt:Laya.Point = PositionUtil.rotationXY(26,26,img.rotation*MathConst.ROTATION_ANGLE);
                img.x -= offsetX;
                img.y -= offsetY;
                offsetX = -pt.x;
                offsetY = -pt.y;
                img.x += offsetX;
                img.y += offsetY;
                img.rotation += 1;
            },self);
        */
        static rotationXY(ox: number, oy: number, agl: number): egret.Point;
        /**获取线段穿透的格子列表,返回数组[格子坐标y1,格子坐标x1,格子坐标y2,格子坐标x2……]，注意此处返回的是先y再x
         * test 342,702,602,402 - 垂直角度测试
         * test 342,702,342,402 - 垂直测试
         * test 342,702,602,602 - 水平角度测试
         * test 342,702,602,702 - 水平测试
         * @param ax 起点坐标x
         * @param ay 起点坐标y
         * @param bx 终点坐标x
         * @param by 终点坐标y
         * @param areaSize 格子大小 默认32
         * @param padding 扩展像素 默认0
        */
        static getAToBPosArray(ax: number, ay: number, bx: number, by: number, areaSize?: number, padding?: number): number[];
        /**根据图形顶点区域获取网格定点数组
         * @param arr 图形顶点数组[x0,y0,x1,y1……]
         * @param paddingX 间隔X
         * @param paddingY 间隔Y
         * @param staggerd 是否交错布局，默认false 二维格子布局，交错则每行间隔半个，每列错位半格
         *
        */
        static getGridPosByShape(arr: number[], paddingX?: number, paddingY?: number, staggerd?: boolean): number[];
        /**根据起点到终点，在指定的路线pts中，找到一段最短的途径路线
         * @param stX 起点x
         * @param stY 起点y
         * @param endX 终点x
         * @param endY 终点y
         * @param pts 路线
         * **/
        static getBestRoute(stX: number, stY: number, endX: number, endY: number, pts: number[]): Route;
        /**从起点索引stInd到终点索引截取一段数组的元素，stInd大于endInd则会自动反向顺序截取到新数组中
         * @param arr 数组
         * @param stInd 起始索引
         * @param endInd 结束索引
         * @param step 数组多少个元素作为一组，例如坐标[x1,y1,x2,y2……]则step为2，默认1
        */
        sliceArray(arr: any[], stInd: number, endInd: number, step?: number): any[];
    }
}
declare module GYLite {
    class StatusUtil {
        statusSprite: GYSprite;
        private fpsText;
        private memoryText;
        private background;
        private loopCount;
        private rendMaxCount;
        private gyBitmapMemory;
        private flashVersionText;
        private parent;
        private lastTime;
        private fps;
        private static _instance;
        static getInstance(): StatusUtil;
        /**初始化*/
        init(p: egret.DisplayObjectContainer): void;
        protected getText(): GYText;
        /**显示*/
        show(): void;
        /**隐藏*/
        hide(): void;
        protected loop(e: egret.Event): void;
    }
}
declare module GYLite {
    /**缓动类*/
    class TweenUtil {
        constructor();
    }
}
/**
@author 迷途小羔羊
2022.09.27
*/
declare module GYLite {
    /**贝塞尔端点类，用于控制贝塞尔曲线*/
    export class BezierPoint {
        private _prePoint;
        private _nextPoint;
        private _frontControlPoint;
        private _backControlPoint;
        private _point;
        constructor(x?: number, y?: number, s?: Single);
        set x(val: number);
        set y(val: number);
        get x(): number;
        get y(): number;
        set frontControlX(val: number);
        set frontControlY(val: number);
        get frontControlX(): number;
        get frontControlY(): number;
        set backControlX(val: number);
        set backControlY(val: number);
        get backControlX(): number;
        get backControlY(): number;
        get prePoint(): BezierPoint;
        set prePoint(val: BezierPoint);
        get nextPoint(): BezierPoint;
        set nextPoint(val: BezierPoint);
        get frontControlPoint(): Point;
        get backControlPoint(): Point;
        get point(): Point;
        clear(): void;
        /**计算3次贝塞尔的长度
         * @param p0 起点
         * @param p1 起点的控制点
         * @param p2 终点的控制点
         * @param p3 终点
         * @param density 绘制点的密度
        */
        static getThreeTimesLength(p0: Point, p1: Point, p2: Point, p3: Point, density?: number): number;
        /**绘制3次贝塞尔曲线的线条路径
         * @param g Graphics
         * @param p0 起点
         * @param p1 起点的控制点
         * @param p2 终点的控制点
         * @param p3 终点
         * @param density 绘制点的密度
         * @param excludeEndPoint 不包括最后一个采样点，默认false，对于环绕的贝塞尔，我们可以剔除最后一个采样点，因为我们需要环接
        */
        static drawThreeTimes(g: egret.Graphics, p0: Point, p1: Point, p2: Point, p3: Point, density?: number, excludeEndPoint?: boolean): void;
        /**绘制3次贝塞尔曲线的波点路径
         * @param g Graphics
         * @param p0 起点
         * @param p1 起点的控制点
         * @param p2 终点的控制点
         * @param p3 终点
         * @param density 绘制点的密度
         * @param excludeEndPoint 不包括最后一个采样点，默认false，对于环绕的贝塞尔，我们可以剔除最后一个采样点，因为我们需要环接
        */
        static drawThreeTimes2(g: egret.Graphics, p0: Point, p1: Point, p2: Point, p3: Point, density?: number, c?: number, r?: number, excludeEndPoint?: boolean): void;
        /**绘制3次贝塞尔曲线的路径波点
         * @param g Graphics
         * @param p0 起点
         * @param p1 起点的控制点
         * @param p2 终点的控制点
         * @param p3 终点
         * @param density 绘制点的密度, 默认0.05
         * @param callBack (x:number,y:number,end:number); x,y坐标 end 0代表起点 1代表执行中 2代表结束
         * @param thisObj this指向
        */
        static drawThreeTimesCall(p0: Point, p1: Point, p2: Point, p3: Point, density?: number, callBack?: Function, thisObj?: any): void;
        /**贝塞尔采样的弦高最大值（像素）*/
        static chordMaxH: number;
        /**贝塞尔采样的弦高最小值（像素）*/
        static chordMinH: number;
        /**轻微倾斜最大值判断，用于矫正轻微倾斜时对衔接进行0.5辅助*/
        static tinyTanMax: number;
        /**轻微倾斜最小值判断，用于矫正轻微倾斜时对衔接进行0.5辅助*/
        static tinyTanMin: number;
        /**默认贝塞尔采样步进密度基准值*/
        static defaultDensty: number;
        private static tempPoint1;
        private static tempPoint2;
        private static _pool;
        private static _s;
        static getInstance(x?: number, y?: number): BezierPoint;
    }
    class Single {
    }
    export {};
}
declare module GYLite {
    class ImageLabel extends GYSprite {
        private _dict;
        private _text;
        private _invalidText;
        private _bitmapVec;
        private _formatVec;
        private _align;
        private _clipBitmap;
        private _textWidth;
        private _textHeight;
        constructor();
        protected initComponent(): void;
        getBitmap(ind: number): GYScaleSprite;
        setData(val: GYLite.Dictionary): void;
        set width(val: number);
        get width(): number;
        set height(val: number);
        get height(): number;
        get text(): string;
        set text(value: string);
        set align(val: string);
        get align(): string;
        set clipBitmap(val: egret.Texture);
        get clipBitmap(): egret.Texture;
        get textWidth(): number;
        get textHeight(): number;
        setForamt(ind: number, t: TextFormat): void;
        updateView(): void;
        invalidText(): void;
        validText(): void;
    }
}
declare module GYLite {
    class ImageLabelData {
        private _inPool;
        bitmapData: egret.Texture;
        width: number;
        height: number;
        offsetX: number;
        offsetY: number;
        constructor();
        setTo(b: egret.Texture, w: number, h: number, ox: number, oy: number): void;
        clear(): void;
        get inPool(): boolean;
        set inPool(val: boolean);
        outPoolInit(): void;
        dispose(): void;
    }
}
declare module GYLite {
    class ExtList extends GYListV implements IKeyBoardObject {
        protected _dragData: any;
        protected _dropData: any;
        protected _dropItem: GYLite.IItemRender;
        protected _dragHandle: GYLite.GYSprite;
        protected _dataCanDrag: boolean;
        constructor(size: number, getGridFunc?: Function, getThisObject?: any, setGridFunc?: Function, setThisObject?: any);
        private addToStage;
        private removeFromStage;
        get dataCanDrag(): boolean;
        set dataCanDrag(val: boolean);
        protected createDragShape(touchId: number, item: GYLite.GYSprite): GYLite.GYSprite;
        protected removeDragShape(): void;
        protected getGrid(): GYLite.IItemRender;
        private itemTouchBegin;
        private rollOut;
        private itemtouchOutside;
        private itemTouchUp;
        private touchListMove;
        keyFocus(): boolean;
        kDown(keyCode: number): void;
        kUp(keyCode: number): void;
    }
    class ListEvent {
        /**列表项拖拽开始*/ static DRAG_START: string;
        /**列表项拖拽到外部，如果拖拽到非列表项上，会调用非列表项的receiveData方法以便传递数据*/ static DRAG_OUT: string;
        /**列表项拖拽进入其他列表项*/ static DRAG_ENTER: string;
        /**列表项放置到其他列表项上*/ static DROP: string;
    }
    class ListDragData {
        /**拖拽的数据，列表项的数据**/ dragData: any;
        /**放置目标的数据，通常是另外一个列表项的数据**/ dropData: any;
        /**相对放置目标的放置坐标Y**/ offsetX: number;
        /**相对放置目标的放置坐标Y**/ offsetY: number;
        constructor(dragData: any, dropData?: any, offsetX?: number, offsetY?: number);
    }
}


